Click here to Skip to main content
15,905,914 members
Please Sign up or sign in to vote.
1.89/5 (3 votes)
See more:
Hello,
I am working on wpf application.... In my application I have billing section ... After the bill generation I want to place that total view of the bill into a pdf file... This Billing Section contains multiple DataGrids... Is there any function to generate a pdf by capturing the complete view of the screen... Or should we design the grids in pdf through code???... Please help me...In case if there is no built in function for capturing view...Then please help me out by giving sample code for desigining datagrids in pdf and generating it.... i am strucked at this pdf generation... Please help me...
Posted
Updated 12-Feb-18 8:36am
v2
Comments
Sergey Alexandrovich Kryukov 16-Dec-13 10:36am    
Why PDFs at all? What have you tried so far?
—SA

1 solution

To generate 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.

It's always better to generate documents not from UI but from your data model, but then you have to have appropriate application architecture.

—SA
 
Share this answer
 

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