Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello sir,
I want to export DataGrid View Data to PDF In C#.Net and VB.Net Windows application without using any third party application or dll.



Thanks in advance.

What I have tried:

I am new in coding i do not have any way to try.
Posted
Updated 2-May-17 19:49pm

1 solution

Quote:
I am new in coding

If you are a beginner, then you have no idea how complicated the task is: that's why we use third party addons such as iTextSharp.
Here is the PDF file format specification: PDF reference[^] - in order to write your own code to generate PDF files, you will need to read and understand tge whole document. As you may have noticed, it's quite large at 1310 pages, and pretty technical. You won't need all of it, probably - but you need to understand it all in order to know what parts you don't need!

This isn't a simple job - I wouldn't attempt it without damn good reasons - but you should finish it in a few years (iTextSharp has been in development since 1998, but the authors probably haven't spent their whole time on it). Good luck!
 
Share this answer
 
Comments
Ashish Gaikwad. 3-May-17 2:09am    
Thank you sir,

Is there any another third party application or dll instead of iTextSharp ?
OriginalGriff 3-May-17 3:43am    
There are some others - Google will find them for you - but I've not tried them. iTextSharp is pretty much the standard which people use.
Ashish Gaikwad. 3-May-17 4:51am    
Thank you sir :)
OriginalGriff 3-May-17 4:56am    
You're welcome!

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