1. Mauricio Pulla
  2. Valentina Reports ADK
  3. Wednesday, October 18 2017, 02:10 PM
  4.  Subscribe via email
Good day

I work with xojo web 2106 r1.1 and valentina 6.3 V4RB, I send a pdf report to preview, it works fine, when sending to print appears another window where you can choose the printer, it is possible to send the pdf to this last window and avoid the first window .

I use this code

Session.mPdf = new WebFile
Session.mPdf.MIMEType = "application/pdf"
Session.mPdf.Filename = "report.pdf"
Session.mPdf.ForceDownload = False
Session.mPdf.Data = mReport.PrintToBuffer( EVReportPrintType.kToPDF)
Session.ShowURL( Session.mPDF.URL, True )

Regards
Mauricio
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
Hello Mauricio,

No, there is no cross-browser way to do it from pure Xojo code.
Printing from the browser (not only in Xojo applications) is very restricted, and restricted differently in different browsers.

There are some efforts to support it in the JavaScript:
http://printjs.crabbly.com/
But as you can see only Chrome and Safari supports printing of PDF.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
Mauricio Pulla Accepted Answer
Hello Sergey.

Thanks for the reply

Regards
Mauricio.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
  • Page :
  • 1


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