startdoc() fails



Rupa
07-09-2005, 09:30 PM
Hi,
I have an application that print an image file. Everything works fine
with the normal printer settings. But if I go to
Printer->Properties->Advanced and select "Print Directly to Printer" ,
then StartDoc() fails and GetLastError() return 6 (Handle is invalid).
i'm just not able to figure this out...please help

Byte
07-09-2005, 09:30 PM
Printing to the spooler is usually faster. Keep it at that.
--
Some days you're the windshield,
some days you're the bug.


"Rupa" wrote:

> Hi,
> I have an application that print an image file. Everything works fine
> with the normal printer settings. But if I go to
> Printer->Properties->Advanced and select "Print Directly to Printer" ,
> then StartDoc() fails and GetLastError() return 6 (Handle is invalid).
> i'm just not able to figure this out...please help
>
>
>


startdoc() fails