Header Ads

Export ASP.Net GridView to PDF using iTextSharp

Many users facing an issue with Export asp.net gridview to PDF that iTextSharp ignores the GridView column widths.

To avoid that, we have to create Tables with ITextSharp library and specify the column width and height as per our requirements. Thus we can create an ITextSharp table with same number of rows and columns as our GridView and specify the column widths for that ITextSharp table. This ensures that the custom column widths that we specify are not ignored in the generated PDF.

Check the Source article at aspsnippets.com

Check the Live Demo here

No comments:

Powered by Blogger.