ehlib25中的printdbgrid 如何设置横向打印。老板等着要,请帮助!!!(50分)

  • 主题发起人 月光2000
  • 开始时间

月光2000

Unregistered / Unconfirmed
GUEST, unregistred user!
ehlib25中的printdbgrid 如何设置横向打印。老板等着要,请帮助!!!
 
试试如下代码示例:
uses ......, PrViewEh, Printers.
..............
procedure TForm1.bPreviewClick(Sender: TObject);
begin
PrinterPreview.Orientation := poLandscape;
PrintDBGridEh1.Preview;
end;
 
不行啊,有没有其它办法。
 
在打印按钮的click 加下列语句
printdbgrideh1.PrinterSetupDialog;
printdbgrideh1.Print;

 
只有在程序运行时在预览里设,在编程时是设不了的
 
顶部