This is a migrated thread and some comments may be shown as answers.

Print Report but avoid downloading PDF to users machine

2 Answers 230 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
NerdBrick
Top achievements
Rank 1
NerdBrick asked on 30 Apr 2014, 11:53 PM
The feature request is to be able to hit the Print button (HTML5 implementation) and do an in browser PDF view with the auto print feature. Right now it will download the PDF so after multiple report prints you end up with a bunch of left over copies of the PDF in the user's download folder. Just adds clutter to the user's machine.

We can write our own PDF download feature on the server with a Content-Disposition of inline (currently Telerik is sending them down as 'attachment'), but we are hoping this was a feature already directly supported in Telerik Reporting without us needing to write special code. 

Note: what we want to keep in place is the way the PDF's are ImmediatePrint when Adobe opens them too. 

Thank you

2 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 01 May 2014, 03:53 PM
Hello,

Currently we support direct print functionality, which depends on the browser's PDF plugin, and default printing where the report is exported into PDF which includes function to open the Print dialog of the used reader.

The HTML5 Report Viewer allows you to modify its template and extend the UI and provide end-users with the ability to preview the report in PDF format in the browser. For the purpose you can export the report into PDF as in the How do I display a PDF directly in the browser without exporting first? help article.

You can also configure the exported into PDF documents to include Javascript function that will open the Print dialog on preview in Adobe Reader for example.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
NerdBrick
Top achievements
Rank 1
answered on 01 May 2014, 08:41 PM
Yes, the print functionality was working just fine in the HTML5 Report Viewer, the end user just didn't want to see PDF files accumulating in their Downloads folder. 

Your last item for the Javascript function to direct print was just the piece I was looking for to make our scenario work. 

Mark this as closed. 

Thank you!
Tags
General Discussions
Asked by
NerdBrick
Top achievements
Rank 1
Answers by
Stef
Telerik team
NerdBrick
Top achievements
Rank 1
Share this question
or