Click here to Skip to main content
15,910,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form that I would like to convert into a PDF for the user to print after they have submitted the data on the form. Can this be done? How would it be done? Right now I just have a print code in place with a print button. Please help!!

C#
protected void ButtonPrint_Click(object sender, EventArgs e)
    {
       ButtonPrint.Attributes.Add("onclick", "window.print(); return false");
    }
Posted
Updated 22-Mar-17 0:02am
Comments
Tom Marvolo Riddle 3-Dec-13 8:24am    
Use Itextsharp DLL to convert.It is a open source product
Computer Wiz99 3-Dec-13 8:26am    
Ok, Thanks. That helps a little but I don't have a grid on my form. Is there a way I can add a signature page at the end of a page when the user clicks on the print button?

Use itextSharp to convert .aspx page to PDF. And at last use signature.
 
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