Welcome Guest Search | Active Topics | Sign In | Register

ASPX to PDF Conversion without user clicking Options
tr
Posted: Wednesday, December 30, 2015 8:49:07 PM
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
eo_support
Posted: Wednesday, December 30, 2015 11:15:44 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.