Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to convert a complete asp.net page into pdf dynamically.
i need an open source or free solution not licensed.
please experts help me.

thanks
Posted
Updated 26-Jun-13 23:36pm
v2
Comments
Thanks7872 27-Jun-13 5:36am    
Why such requirement?
mkbisht 27-Jun-13 5:43am    
actually i have information page about products details and specification.
when user click on pdf button it should to convert into pdf and mail as attachment.
raj ch 27-Jun-13 6:06am    
or else pdf printers which automatically converts ur page to pdf
like dopdf
Thanks7872 27-Jun-13 6:21am    
First of all,it does not make sense to print or make pdf from page.e.g. if you have products and specification on page,then display it in gridview and export that to pdf.
mkbisht 27-Jun-13 6:38am    
how can i display in gridview that is static content on page not from database..

You'd try iTextSharp.
http://sourceforge.net/projects/itextsharp/[^]
Quote:
iTextSharp is a C# port of iText, and open source Java library for PDF generation and manipulation. It can be used to create PDF documents from scratch, to convert XML to PDF (using the extra XFA Worker DLL), to fill out interactive PDF forms, to stamp new content on existing PDF documents, to split and merge existing PDF documents, and much more.

Here's the documentation: http://www.afterlogic.com/mailbee-net/docs-itextsharp/[^]
 
Share this answer
 
Comments
mkbisht 27-Jun-13 5:41am    
i already used itextsharp but it is not enough for me.
Alessandro_Avila 27-Jun-13 5:45am    
iTextSharp is a very powerful library; what should you have to do?
Alessandro_Avila 27-Jun-13 5:49am    
I've read your previous comment: for the part where you print products detail and specification on a pdf document you could easily employ this library.
Take a look: http://www.c-sharpcorner.com/UploadFile/f2e803/basic-pdf-creation-using-itextsharp-part-i/
Hey its no needs to go for all these :

try:

XML
Response.Write(htmlcode_as_string);
Response.Write("<script language='javascript'>window.print();</script>");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900