[ACCEPTED]-Tables and charts using PDFsharp-pdfsharp
Accepted answer
PDFsharp is a "low level" PDF 5 generator, while MigraDoc is a "high 4 level" document generator that uses 3 PDFsharp to create PDF files, but can also 2 create e. g. RTF.
Visit the PDFsharp/MigraDoc 1 Foundation Website for further information:
http://www.pdfsharp.net/
If you dont want to use MigraDoc, you can 5 use the gfx.Drawline() and draw the table 4 yourself. I did it in one of my Projects. You 3 can do it like that:
gfx.DrawLine(pen, 45, 250, 45, 703);
gfx.DrawLine(pen, 87, 250, 87, 703);
gfx.DrawLine(pen, 150, 250, 150, 703);
gfx.DrawLine(pen, 291, 250, 291, 703);
gfx.DrawLine(pen, 381, 250, 381, 703);
gfx.DrawLine(pen, 461, 250, 461, 703);
gfx.DrawLine(pen, 571, 250, 571, 703);
Or you can use a for 2 loop to do it like that and count the postion 1 up.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.