1. Dale
  2. Valentina Reports ADK
  3. Saturday, June 13 2020, 12:31 PM
  4.  Subscribe via email
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!
Attachments (2)
Comment
There are no comments made yet.
Dale Accepted Answer
Additionally, the server app logs this message:
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Sergey Pashkov Accepted Answer
Hi Dale,

PrintToLocalPrinter prints on printer installed on the server (where the application is actually running).
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Dale Accepted Answer
Sergey, is there anyway to workaround this?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
Sergey Pashkov Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
Dale Accepted Answer
Okay, Sergey. Thanks!
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 5
  • Page :
  • 1


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

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories