AB4D Forum
Printing - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: ViewerSvg and Ab2d.ReaderSvg (https://forum.ab4d.com/forumdisplay.php?fid=6)
+--- Thread: Printing (/showthread.php?tid=3925)



Printing - David - 01-07-2015

What would you recommendation would be the best way to print SVG files.


RE: Printing - abenedik - 01-10-2015

One very easy way to print any WPF object is to use PrintDialog:

Code:
PrintDialog printDialog = new System.Windows.Controls.PrintDialog();

if (printDialog.ShowDialog() == true)
    printDialog.PrintVisual(anyWpfElement, "Print job title");

Replace anyWpfElement with the read svg element.

I have use that quite a while ago. So maybe there is some better way to do it or this process has some additional settings. Please check the web for more info.