F
FlyBird78
Unregistered / Unconfirmed
GUEST, unregistred user!
现问题如下:当打印DBGrid中数据时,其结果打印出的东西,只占打印出页面的左上角一小部分。即:打印可以成功,然而打印出的东西太小了,可能用放大镜也看不清楚,如何解决??亟盼!亟盼!
if PrintDialog1.Execute then
begin
if (PageControl1.ActivePage = TabSheet1) then
begin
PrintDialog1.Options := [poPrintToFile, poPageNums, poSelection, poWarning, poHelp, poDisablePrintToFile];
with Printerdo
begin
begin
Doc;
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 Printerdo
begin
begin
Doc;
DBGrid1.PaintTo(Handle, 10, 10);
EndDoc;
end;
end;
end;