If has nothing to do with WPF, specifically, but you can do it with .NET. This is not a natural way of printing though. The idea is: you have to perform a "copy /b" ("/b" means "binary", or, in this case, "as is") command to copy your file to a printer. You would need to use your shared printer
UNC path name (see also second last link below for an example), or use default printer ("prn", and the printer should be configured). To do it programmatically, you will need to use
System.Diagnostics.Process.Start
:
Process.Start Method (System.Diagnostics)[
^].
Basically, that's all. See also:
C# Corner : Error Display[
^],
Directly print *.prn files using C#.net[
^].
I hope you understand that your PRN file should be obtained for a compatible model of a printer. In case of mismatch, you can get only printer malfunction or just garbage.
—SA