1. Mauricio Pulla
  2. Valentina Reports ADK
  3. Среда, Октябрь 18 2017, 02:10 PM
  4.  Подписаться через 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 )

There are no comments made yet.
Sergey Pashkov Ответ принят
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:
But as you can see only Chrome and Safari supports printing of PDF.
There are no comments made yet.
Mauricio Pulla Ответ принят
Hello Sergey.

Thanks for the reply

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.


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