Click here to Skip to main content
15,888,106 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how export many column datagridview vbnet to pdf file...
Posted
Comments
hareshdgr8 30-Sep-13 2:18am    
how to set page orientation on PDF

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-Jun-13 13:41pm    
Can be helpful, a 5.
—SA
dedet masri yuni 10-Jun-13 5:50am    
tanks master for solution... :)
Thomas Daniels 10-Jun-13 11:41am    
You're welcome!
To generate some PDF, you can use iText, or its .NET port, iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

In included the reference to Java iText site as well, because most documentation is there. If you understand C#, it would not be difficult to understand Java-bases API documentation.

However, I'm not sure you really need to export some DataGridView content. Usually, this control, bound or not, is used to represent some data model of your application, something which itself comes from data layer. That said, you should rather actually have some data layer, and export functionality in that data layer, instead of doing it in the UI layer.

—SA
 
Share this answer
 
Comments
dedet masri yuni 10-Jun-13 5:50am    
tanks master for solution :)
Sergey Alexandrovich Kryukov 10-Jun-13 8:59am    
You are welcome.
—SA
dedet masri yuni 1-Dec-14 4:31am    
can u help me master for this link question , please ...
http://www.codeproject.com/Questions/845294/help-me-how-save-image-and-load-image-longblob-mys?arn=0

tanks... master :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900