Exporting paging enabled GridView to pdf using iTextSharp(csharpdotnetfreak.blogspot.com)

submitted by amit.jainamit.jain(1181) 3 years, 4 months ago

In my previous post Export GridView to pdf using iTextSharp in ASP.NET , i explained how to write Grid View contents to a PDF file , but this code has some bugs 1. Code doesn't work if paging is enabled in GridView 2. Cloumns become of variable width in PDF documnt as shown in the image below To fix these problems we need to write code without using xmlTextReader and HtmlParser. for this we need to create a table in PDF document and then fill the cells of table from GridView And the new html and codebehind would become like this

add a comment |category: |Views: 184

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story