1. Dale
  2. Valentina Reports ADK
  3. Samstag, Juni 13 2020, 12:31 PM
  4.  Abonnieren via E-Mail
Hi!

I have a web app stored in the cloud. If I issue mReport.PrintToLocalPrinter(), whose local will it print on, on the server or on the client? At first, I thought on the client so I made an option that if a user wants to print directly on his/her default printer, my app calls the PrintToLocalPrinter method. However, since the server (in the cloud) has no installed printer but Microsoft's PDF Printer as the default (WinServer 2016), it keeps asking for a pdf file. Subsequent requests from clients' side do not go through because the server is still waiting for someone to enter a filename for the first request. It seems PrintToLocalPrinter calls the local printer configuration of the server. Is there anything that I missed?

Please see the attached screenshots. Thanks!
Anhänge
Kommentar
There are no comments made yet.
Dale Akzeptierte Antwort
Additionally, the server app logs this message:
Anhänge
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hi Dale,

PrintToLocalPrinter prints on printer installed on the server (where the application is actually running).
Kommentar
There are no comments made yet.
Dale Akzeptierte Antwort
Sergey, is there anyway to workaround this?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Print to PDF and open it in a browser tab, where the user can print it.
That's the most reliable way.

Also, a PDF can be printed using the JavaScript+iframe but it doesn't work in Firefox
Kommentar
There are no comments made yet.
Dale Akzeptierte Antwort
Okay, Sergey. Thanks!
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.