急,在线等待:高分求,已知一个*.QRP文件怎么用DELPHI文件打开它,并且可以跳出打印设置?
解决方案 »
- delphi7中string的长度不够怎么办?
- 求助:这段sql代码如何在delphi中调用...
- 用Delphi开放一个三层结构的Web应用程序,一般怎么做?要用到哪些控件(一定要是Delphi自带的)
- 菜鸟问题:如何将SQL SERVER数据表中的数据导入到EXCEL中?
- delphi调用word问题
- 关于DevExpressBar的应用,在线等
- 不好意思问:DELPHI 怎么读啊,我身边的人都不懂,[在线等待]
- 怎么能把汉字转换成对应的拼音字母??
- 谁能告诉我stringGrid中DrawCell事件的用法?
- 众多问题需要解决
- 两个小问题,请求帮忙!
- 如何将做底程序在98和2000下显示不会出现偏差??
先QuickRep1.Prepare
然后 QuickRep1.QRPrinter.Save( 'theprintfilename.QRP' );打印更简单:
uses QRBonus;// in QuickRep2
or uses QRExtra; // in QuickRep3with TQRPHandler.Create do
begin
try
Filename := 'theprintfilename.QRP';
Preview; {or} Print;
finally
free;
end;
end;
然后 QuickRep1.QRPrinter.Save( 'theprintfilename.QRP' );打印更简单:
uses QRBonus;// in QuickRep2
or uses QRExtra; // in QuickRep3with TQRPHandler.Create do
begin
try
Filename := 'theprintfilename.QRP';
Preview; {or} Print;
finally
free;
end;
end;
uses QRExtraprocedure TForm1.Button2Click(Sender: TObject);
begin
with TQRPHandler.Create do
begin
try
Filename := 'zz.QRP';
Preview; {or} Print;
finally
free;
end;
end;
procedure TFrmUserInput3.PrintAOrderNo(aFileName : String ) ;
begin
if (Pos( 'QRP',UpperCase(aFileName) ) > 0) then
try
with frmPrintZXDbs.QuickRep1 do
begin
if RadioGroup3.ItemIndex = 0 then //打印方向
Page.Orientation := poLandscape // 横向
else
Page.Orientation := poPortrait ;//从向
Prepare ;
QRPrinter.Load(aFileName) ;
if RadioGroup2.ItemIndex = 0 then //打印方式
QRPrinter.Preview
else
QRPrinter.Print ;
end ;
finally
;
end ;
end ;