Solved

Exporting a web form in PDF format

Posted on 2008-06-25
5
463 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 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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