Board index » delphi » TPrinter fails on Printer.BeginDoc
John Williams
![]() Delphi Developer |
Fri, 31 May 2002 03:00:00 GMT
TPrinter fails on Printer.BeginDoc
I have a new HP Photosmart 1100xi printer (latest driver under Windows
NT). All commercial applications that I have tried (including Delphi) print to it just fine. Using TPrinter calls from my own application (and all other sample TPrinter applications that I have tried, including efg's Printer Demo #2) causes a halt in the Printer.BeginDoc call. Tracing into the printers.pas source code shows that the failure is occurring in the CreateDC function (which is called by Printer.BeginDoc): .... This does not occur when printing to other printers (HP Laserjet 6mp, This halt only occurs when running the code from within the Delphi IDE. Does anyone have any ideas what might be going on? Thanks, John Williams |