1. Dale
  2. Valentina Reports ADK
  3. Суббота, Июнь 13 2020, 12:31 PM
  4.  Подписаться через 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!
Вложения
Комментарий
There are no comments made yet.
Dale Ответ принят
Additionally, the server app logs this message:
Вложения
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Hi Dale,

PrintToLocalPrinter prints on printer installed on the server (where the application is actually running).
Комментарий
There are no comments made yet.
Dale Ответ принят
Sergey, is there anyway to workaround this?
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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
Комментарий
There are no comments made yet.
Dale Ответ принят
Okay, Sergey. Thanks!
Комментарий
There are no comments made yet.
  • Страница :
  • 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