Solved

.NET Web Page Print to PDF

Posted on 2011-09-12
3
373 Views
Last Modified: 2012-05-12
In vb.net / c# Is there any way to print a section of the webpage to pdf ?
0
Comment
Question by:EasyToHelp
3 Comments
 
LVL 1

Expert Comment

by:rerard
ID: 36524373
Do you control the webpage or no?  I have been using Winnovative (http://www.winnovative-software.com/) to do just that in a VB application.  I make an HTTP call, passing values via the URL query string to the site so that it shows me what I want and I use the Winnovative stuff to convert the resulting HTML to a PDF which I save on the server.  The PDF is then sent out as an email but I don't think you care about that part.
0
 
LVL 28

Expert Comment

by:strickdd
ID: 36524852
If you want to create it programmatically, I would recommend iTextSharp. It is free and open source. If you are willing to pay for the service, you can look into ActivePDF, but it has some significant issues compared to iTextSharp.
http://itextpdf.com/
0
 
LVL 13

Accepted Solution

by:
jonnidip earned 500 total points
ID: 36549518
If you want to do it by code, I would suggest you to use PdfSharp.
It is easy to use and has better performances than iTextSharp.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

829 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