I have a requirement to output to a print document, which is working to a point with the following code:
Code: Select all
Stream CO2PlotStream = new MemoryStream();
tcCO2Plot.Export.Image.PNG.Save(CO2PlotStream);
Image CO2PlotImage = Image.FromStream(CO2PlotStream);
This is then drawn on the print engine in the OnPrint event where Bounds is the calculated page bounds.
Code: Select all
e.Graphics.DrawImage(Image, Bounds);
However, the image appears fuzzy - see the attached screenshot of the resultant document in PDF form.
- Extract from Print call
- PDF Report ScreenCap.png (87.78 KiB) Viewed 4216 times
Contrast with a clipboard copy to Word and PDF - The clipboard copy is generated with the following code
Code: Select all
Chart.Export.Image.Metafile.CopyToClipboard();
And produces the following when PDFd (and screen cap'd)...
- PDF Clipboard ScreenCap.png (55.87 KiB) Viewed 4191 times
Any suggestions as to how I can improve the printing to be more like the copy?
TIA Bernie