FoxPro Programming
printing
Gravatar is a globally recognized avatar based on your email address. printing
  Nechama
  All
  May 2, 2017 @ 10:25am

After a pdf is generated, to print, the user has to download and then open the pdf and print To download and I use the following code:

Response.DownloadFile(lcPdfFile,"application/pdf",[roster.pdf])

How can I send pdf straight to default printer without downloading and without user interaction.

Also, suppose I want it to print to a printer other than default, what's the code to ask for the output printer (like FoxPro's getprinter())?

Thanks for any help.

Gravatar is a globally recognized avatar based on your email address. re: printing
  Tore Bleken
  Nechama
  May 2, 2017 @ 10:46am

I already answered your question. It's not possible for security reasons. What if the PDF contained a virus, which is possible (and happens)? That's why the user who downloads the file has to print it.

© 1996-2024