全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1117
推到 Plurk!
推到 Facebook!

QReport列印問題!!

答題得分者是:banson1716
Pito
一般會員


發表:2
回覆:0
積分:0
註冊:2003-07-04

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-07-21 16:32:40 IP:211.23.xxx.xxx 未訂閱
現在資料庫有兩筆欄位,但我想要在QReport下列印出的資料順序是先"由左到右",然後在"由上到下",請問各位高手要如何辦到ㄝ?
ying0515
中階會員


發表:90
回覆:168
積分:81
註冊:2003-01-04

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-07-22 10:18:49 IP:61.218.xxx.xxx 未訂閱
小弟的做法是用TClientDataSet在本機端實作出虛擬TempTable, 將資料作一次排列整理再由QuickReport印出. Delphi Man
------
Delphi
banson1716
高階會員


發表:55
回覆:182
積分:167
註冊:2002-04-14

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-07-26 09:09:58 IP:218.175.xxx.xxx 未訂閱
由上到下印列資料 在字體就選 @ 的,文字自轉90度 數字符號要全形才會轉 90度 由左到右 須利用copy字串中取得位置左至右取字一個個取字於QRDBText中 例 取數字並轉全型 procedure TQrpDieLdDgSv.QRDBText12Print(sender: TObject; var Value: String); var Value1 :string; //數字個位數(左至右取字) begin if Value <> '' Then begin Value1 := Copy(Value,2,1); if Value1 = '0' Then Value1 := '0'; if Value1 = '1' Then Value1 := '1'; if Value1 = '2' Then Value1 := '2'; if Value1 = '3' Then Value1 := '3'; if Value1 = '4' Then Value1 := '4'; if Value1 = '5' Then Value1 := '5'; if Value1 = '6' Then Value1 := '6'; if Value1 = '7' Then Value1 := '7'; if Value1 = '8' Then Value1 := '8'; if Value1 = '9' Then Value1 := '9'; Value := Value1; end else Value := ''; end; procedure TQrpDieLdDgSv.QRDBText4Print(sender: TObject; var Value: String); var Value1 :string; //十位數(數字左至右取字) begin if Value <> '' Then begin Value1 := Copy(Value,1,1); if Value1 = '0' Then Value1 := '0'; if Value1 = '1' Then Value1 := '1'; if Value1 = '2' Then Value1 := '2'; if Value1 = '3' Then Value1 := '3'; if Value1 = '4' Then Value1 := '4'; if Value1 = '5' Then Value1 := '5'; if Value1 = '6' Then Value1 := '6'; if Value1 = '7' Then Value1 := '7'; if Value1 = '8' Then Value1 := '8'; if Value1 = '9' Then Value1 := '9'; Value := Value1; end else Value := ''; end;
系統時間:2024-05-05 4:21:35
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!