How to save Gridview in pdf format?

Posted by Laghaterohan under Regular Expressions on 12/27/2010 | Points: 10 | Views : 3628 | Status : [Member] | Replies : 3
Hello,
Can any one please let me know how can we save the Gridview in .pdf format? Just as we save in word or excel format?

My file gets save in .pdf format but when i try to open it i get ERROR opening the file...can any one let me know what is the reason?

Can ne one provide me working code?

Thanks!

Best Regards,
Rohan Laghate



Responses

Posted by: SheoNarayan on: 12/27/2010 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Laghaterohan,

Go through this article that I have written, this has exactly what you are looking for http://www.dotnetfunda.com/articles/article977-pdf-generator-in-net--dynamically-generate-pdf-in-aspnet-.aspx

Thanks!

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Laghaterohan on: 12/27/2010 [Member] Starter | Points: 25

Up
0
Down
Hi Sheo,
Thanks! I was able to export gridview using iTestSharp dll. However, i mean to ask that is there any way by which we can export the gridview/page to pdf format and again open it without any error without using any third party components??


Thanks!!
Happy Coding:)

Best Regards,
Rohan Laghate

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/6/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Try this link

http://www.aspsnippets.com/Articles/Export-GridView-To-Word-Excel-PDF-CSV-Formats-in-ASP.Net.aspx

Thanks
Karthik
www.f5Debug.net

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response