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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top