Rank: Newbie Groups: Member
Joined: 12/30/2015 Posts: 1
|
I was wondering if there is an example of rendering/converting aspx pages to pdf in the browser window without the user having to click. Done from code behind? Thank You
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
If you use ASPXToPDF, you can just call ASPXToPDF.RenderAsPDF in your Page_Load. The RenderAsPDF method is what triggers the conversion --- what triggers RenderAsPDF is a completely up to you. A common scenario is to call it in a Button's Click event handler, but you don't have to do it that way.
Thanks!
|