现问题如下:当打印DBGrid中数据时,其结果打印出的东西,只占打印出页面的左上角一小部分。即:打印可以成功,然而打印出的东西太小了,可能用放大镜也看不清楚,如何解决??亟盼!亟盼!
if PrintDialog1.Execute then
begin
if (PageControl1.ActivePage = TabSheet1) then
begin
PrintDialog1.Options := [poPrintToFile, poPageNums, poSelection, poWarning, poHelp, poDisablePrintToFile];
with Printer do
begin
BeginDoc;
DBGrid1.PaintTo(Handle, 10, 10);
EndDoc;
end;
end;
end;
if PrintDialog1.Execute then
begin
if (PageControl1.ActivePage = TabSheet1) then
begin
PrintDialog1.Options := [poPrintToFile, poPageNums, poSelection, poWarning, poHelp, poDisablePrintToFile];
with Printer do
begin
BeginDoc;
DBGrid1.PaintTo(Handle, 10, 10);
EndDoc;
end;
end;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货