Hi Friends,
Does anybody of you know a method on how to print PDF documents from
an application to a specific printer not to the default printer.I have
done for the default printer. I need to do it for the user specific
printer
char *path = "c:\\ctpg.pdf";
ShellExecute(NULL, "open", path, NULL, NULL, SW_NORMAL);
ShellExecute(NULL, "print", path, NULL, NULL, SW_NORMAL);
this prints to the default printer. Please help me regarding this.
Thanx in advance
Mullai
David Lowndes - 08 Nov 2006 10:55 GMT
>Does anybody of you know a method on how to print PDF documents from
>an application to a specific printer not to the default printer.I have
[quoted text clipped - 5 lines]
> ShellExecute(NULL, "print", path, NULL, NULL, SW_NORMAL);
>this prints to the default printer. Please help me regarding this.
Have a look for information on using the "printto" verb. I've never
used it myself, but that's apparently what the shell supports for Drag
& drop to printers.
Dave