Printing PDF Files

  • Thread starter Thread starter Mullai
  • Start date Start date
M

Mullai

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
 
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.

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
 
Back
Top