Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to print text to a local or network printer from my WPF app

$
0
0

Hi,

I have a Print button in my WPF app and when the user clicks on it, I want to display the Windows' standard Print dialog box where user can choose the printer and change other print settings.  My app creates a big C# string which needs to be printed.

Please point me to some example code on how the printing is done with C#.  In old C++ world, I was able to just open an output stream withfopen() for writing to a text file or printer.  But I am not sure how to write to printer with C#.

Thanks a lot.


Viewing all articles
Browse latest Browse all 18858

Trending Articles