Thursday, April 09, 2009

Using Winnovative HTML to PDF Converter in C# to generate PDF File

Steps:
1. Add wnvhtmlconvert.dll to Project Reference under Visual Studio

2. Import it into your code behind file "using Winnovative.WnvHtmlConvert;"

3. Add your PdfConverterKey into Web.Config

<add key="PdfConverterKey" value="your key here"/>

4. Write Below Code (Click to Expand)


And you are done.
Let me know if you have any questions

1 comment:

Mala said...

changing PDFPageOrientation.Portrait to PDFPageOrientation.Landscape had no impact. please tell me how can i change page orientation to landscape