| PDFsharp & MigraDoc Forum https://forum.pdfsharp.net/ |
|
| Can I use e.DrawString with PDFsharp for saving to .pdf https://forum.pdfsharp.net/viewtopic.php?f=2&t=2522 |
Page 1 of 1 |
| Author: | Thomas214 [ Thu Jul 18, 2013 6:40 pm ] |
| Post subject: | Can I use e.DrawString with PDFsharp for saving to .pdf |
I have a lot of code for printing using c# Code: e.Graphics.DrawString(label1.Text, label1.Font, Brushes.Black, 13, 13); e.Graphics.DrawString(textBox1.Text, textBox1.Font, Brushes.Black, 134, 230); // etc Can I use this code to save to a pdf. file??? |
|
| Author: | () => true [ Sat Jul 20, 2013 9:34 pm ] |
| Post subject: | Re: Can I use e.DrawString with PDFsharp for saving to .pdf |
Yes, just use an XGraphics object instead of "e.Graphics". Some statements may need adjustments, but most of the code should work. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|