Ehlib DBGridEh中怎样进行横向打印 / 打印预览?

来源:互联网 发布:中车唐山公司 知乎 编辑:程序博客网 时间:2024/05/01 20:19

答 : TPrintDBGridEh 并没有专六的属性来设置页面特性。在调用打印或打印预览方法前,你必须设置你将要执行打印的打印源( Orientation )。
uses ......, PrViewEh, Printers.
..............
procedure TForm1.bPreviewClick(Sender: TObject);
begin
PrinterPreview.Orientation := poLandscape;
PrintDBGridEh1.Preview;
end ;
原创粉丝点击