1. Dale
  2. Valentina Reports ADK
  3. 土, 6月 13 2020, 12:31 PM
  4.  メールで購読
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 承諾済みの回答
Okay, Sergey. Thanks!
コメント
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 承諾済みの回答
Sergey, is there anyway to workaround this?
コメント
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 承諾済みの回答
Additionally, the server app logs this message:
添付ファイル
コメント
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