Page 1 of 1
Print to PDF
Posted: Thu Jan 28, 2016 9:52 pm
by ScottStoneback
Is it possible from the viewer to convert the active report to PDF and then print it? The behavior that I'm looking for is when the user clicks on the Print button that the report is converted to PDF and then printed directly. The reason I need this behavior is because in some browsers, it adds information to the printout including the url, page number, date, etc on the printout and that messes up the format of my report, usually adding additional pages to it. If there is some other method of doing this I'd be open to suggestions.
Thanks,
Scott
Re: Print to PDF
Posted: Fri Jan 29, 2016 7:55 am
by HighAley
Hello, Scott.
We disabled this feature, because there are some limitation of JavaScript that don't allow to to this.
We can add a Print to PDF feature. But you should then send this file to your server from a Viewer event and return it back to the browser.
Do you accept such way of printing to PDF?
Thank you.
Re: Print to PDF
Posted: Fri Jan 29, 2016 2:30 pm
by ScottStoneback
Yes that would be completely fine. Right now what I'm doing is capturing the current print event and calling a server method which returns me a pdf stream. And then I print that pdf document. And then I'm using e.preventDefault = true in the print event to stop the default print from happening. It would be nice if I didn't need to render my report twice on the server.
Re: Print to PDF
Posted: Mon Feb 01, 2016 6:27 am
by HighAley
Hello, Scott.
OK. We will made an improvement and will let yo know when it will be available.
Thank you.
Re: Print to PDF
Posted: Mon Mar 21, 2016 6:44 am
by HighAley
Hello.
We have implemented the Print to PDF feature.
Please, look at the latest build that is available on our site.
Thank you.