Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Exporting a web form in PDF format

Posted on 2008-06-25
5
Medium Priority
?
472 Views
Last Modified: 2013-12-16
Is there a way to export in PDF format a web form?  The idea is to have the web form exported into PDF and have it attached to a mail message and sent to a receipient automatically.
0
Comment
Question by:CLoucas
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 21865681
Dear CLoucas,

Probably you can try this free PDF software generator for asp.net, download iTextSharp framework for the development:
http://itextsharp.sourceforge.net/
http://www.brothersoft.com/downloads/itextsharp-tutorial.html

Tutorial how to use it:
http://www.mazsoft.com/blog/post/2008/04/Code-sample-for-using-iTextSharp-PDF-library.aspx
http://itextsharp.sourceforge.net/tutorial/ch01.html
http://channel9.msdn.com/forums/TechOff/117199-ASPNET-and-iTextSharp-free-PDF-Generator-for-NET/
http://asp-net-whidbey.blogspot.com/2006/04/generating-pdf-files-with-itextsharp.html

You can use it for generate PDF on the fly and later you can attach it inside the email as attachment.
Hope that helps.
0
 

Author Comment

by:CLoucas
ID: 21865842
Will this allow to convert the whole web form into PDF?

0
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 21866233
Dear CLoucas,
I'm not sure which portion you want to extract into PDF format. However, if you want to scrap the whole web form content, you can use the code the output the entire layout and put into PDF format based on your preferred format via iTExtSharp control that recommended above.
0
 

Author Comment

by:CLoucas
ID: 21882018
What I had in mind was to use the report control in ASP.Net 2.0 toolbox.  I just need some guidance to use it.  I am looking for a way to create a single record report, export it to PDF and save it to disk automatically, before it will be attached to an email message and sent to a receipient.
0
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 1500 total points
ID: 21882098
Dear CLoucas,
Yes, you can output your entire report format and put it in preferred PDF format before send as attachment to the appointed receipient.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question