QReport列印問題!! |
答題得分者是:banson1716
|
Pito
一般會員 發表:2 回覆:0 積分:0 註冊:2003-07-04 發送簡訊給我 |
|
ying0515
中階會員 發表:90 回覆:168 積分:81 註冊:2003-01-04 發送簡訊給我 |
|
banson1716
高階會員 發表:55 回覆:182 積分:167 註冊:2002-04-14 發送簡訊給我 |
由上到下印列資料
在字體就選 @ 的,文字自轉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;
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |