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

generating a PDF from web page

1 Answer 57 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
Cory
Top achievements
Rank 1
Cory asked on 07 Nov 2016, 08:38 PM

I've read through many of the posts here but none seem to directly apply to my issue.  I have a telerik AJAX based shipping application that is generating a Bill of Lading.  The bill of lading is a legal document that need to look exactly like what the user sees on the page.  I'm generating that to a web page, but of course printing a web page generates all sorts of "noise" to the document - additional page numbers... web page source name, etc.

 

I would like to export the web page to a PDF and then have that print - all in one step.  The issue that I'm seeing is that ClientExportManager generates the PDF which shows up as a downloaded document.  The user has to open that doc, then click print, then gets to the print dialog.  That is a major pain.

 

Is there a way to generate the PDF directly to a web page - so it is displayed in a RadWindow (for instance) with a print button exposed at that point?  My users a balking at the multiple step process above but I can't find a way around it.  Basically I just need to print a web page without all the extra junk that the browsers add - so if there is a way that you know to do that instead - that would work too.

 

Thanks in advance!

Cory

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 10 Nov 2016, 02:08 PM
Hello Cory,

Generating the exported file in a RadWindow is not supported. Once the content is exported it is handled by the browser, from this point on depending on how the specific browser is configured it may or may not open the file and instead ask you to save it. For instance Chrome can preview the file (screenshot) and allow you to print it without the need to open it with a dedicated PDF viewer (Adobe Acrobat for example). For this to work Chrome's own PDF Viewer plugin needs to be enabled in chrome://plugins/

Regards,
Ivan Danchev
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
ClientExportManager
Asked by
Cory
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or