Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello guys! i want to know how to export datagridview data in pdf in c# please help me i really need the answer of this question ASAP.
Thanks
Regards

What I have tried:

i am trying nothing bcz i dont know solution of this problem so please help me
Posted
Updated 30-Aug-16 11:42am

1 solution

If you're not using a third partly control which has that built in, you can export to Excel then use Excel to create a PDF.

Some quick Googling and found these that might help:

Office How to Export DataGridView Data to Excel by using Excel Object sample in C#, VB.NET for Visual Studio 2012[^]

c# - Create Excel file and save as PDF. - Stack Overflow[^]
 
Share this answer
 
Comments
Member 9983063 30-Aug-16 18:24pm    
Hey man thnx this links work for me well can you please tell me how can i show textbox value in excel sheet last row
[no name] 6-Sep-16 2:13am    
Here is a direct way to export data from database to PDF in C# - Convert SQL data to PDF

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