如题!
解决方案 »
- delphi 控件不可见
- 100分求一个简单问题,怎样将这三名话改写成object pascal,在线等,解决马上结帐?
- 调用Outlook控件发邮件时,会跳出一个让你确认的窗口,怎么才能不让它出来?
- 请教如何用api读取注册表中某项的值?
- 图像格式转换问题(在内存中)
- ■■■快结贴啊!我答复的好多帖子都没结,我都快没分了!气死我了!!■■■
- 请教高手
- 如何用DELPHI编程实现对OICQ的屏蔽。(100分)
- 复选框的显示问题?
- 看似个小破问题,却卡了我。有关DM,TABLE(看情况,分再加)
- 请问,Type record.....End; 结构的记录,他的成员可以是一个常量吗
- 它说我这句SQL有问题。。。
var
Form1: TForm1;
Count :Integer;
implementation{$R *.dfm}{ TForm1 }procedure TForm1.vPrint;
var
QRL : TQRLabel;
I, J , K :integer;
xLeft, xTop, xHeight, xWidth :Integer;
QRLName : String;
begin
K :=0;
xLeft := 24;
xTop := 184;
xHeight :=17;
xWidth :=665;
QRMemo1.Visible :=False;
QRLabel1.Visible :=False;
for I := 0 to QRMemo1.Lines.Count - 1 do
begin
if ((xTop + 17 * I + 8) > 995 ) then Break; //判断是否越界
QRLName := 'QRL'+ IntToStr(I+1);//这是名子,可要可不要;
QRL := TQRLabel.Create(self);
QRL.AutoSize :=False;
QRL.Parent := QRLabel1.Parent;// PageHeaderBand1;
QRL.Left := xLeft ;;
QRL.Top := xTop + 17 * I + 8;
QRL.Height := xHeight;
QRL.Width := xWidth;
QRL.Name := QRLName;
QRL.Caption := QRMemo1.Lines.Strings[I];
QRL.Visible := True;
end;
if I <= QRMemo1.Lines.Count then
begin
Count := I;
xTop := 48;
Form3.QRLabel1.Caption := '自我简介续页';
for J := I to QRMemo1.Lines.Count - 1 do
begin
QRLName := 'QRL'+ IntToStr(J+4);
QRL := TQRLabel.Create(self);
QRL.AutoSize :=False;
QRL.Parent := Form3.QRLabel1.Parent;// PageHeaderBand1;
QRL.Left := xLeft ;
QRL.Top := xTop + 17 * K + 8;
K := K + 1;
QRL.Height := xHeight;
QRL.Width := xWidth;
QRL.Name := QRLName;
QRL.Caption := QRMemo1.Lines.Strings[J];
QRL.Visible := True;
end;
end;
end;
---------------------------------
var
Form2: TForm2;implementation{$R *.dfm}procedure TForm2.Button1Click(Sender: TObject);
begin
Form1.QRMemo1.Lines := Memo1.Lines;
Form1.vPrint;
QRCompositeReport1.Preview;
Application.MessageBox('敌方全部被歼灭','GAME OVER',mb_ok+mb_iconinformation);
end;procedure TForm2.Button2Click(Sender: TObject);
begin
Label1.Caption :=IntToStr(Memo1.Lines.Capacity);
end;procedure TForm2.QRCompositeReport1AddReports(Sender: TObject);
begin
if Count < Memo1.Lines.Count-1 then
begin
QRCompositeReport1.Reports.Add(Form1.QuickRep1);
QRCompositeReport1.Reports.Add(Form3.QuickRep1);
end else
QRCompositeReport1.Reports.Add(Form1.QuickRep1);
end;
----------------------------------------------
var
Form3: TForm3;implementation{$R *.dfm}end.