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

2 comments:

  1. The popularity of government jobs in India doesn’t need a clarification and it’s not for nothing. It not only provides you with a relaxed and secure job but offers you ample opportunities to grow and reach a much higher position in the hierarchy than the one you started with.
    government jobs in tamilnadu

    ReplyDelete
  2. Governments in India, whether or not Central or State, commonly, ask for applications from suitable applicants both via offline methods or through on line strategies. The offline approach is getting used much less and much less in recent times and normally, all government task utility methods are shifting to finish online structures.

    free job alert hp

    ReplyDelete

Powered by Blogger.