0

I would like to print a WPF page to a PCL file (so that it can be faxed). Is there a reasonable way to do this in the code or should I just print out to a PCL printer driver? (I am inclined towards the print driver, but if there is a cleaner solution I'd rather go with a better option.)

P.s. WPF Printing to fit page is a great example of WPF printing.

Community
  • 1
  • 1
Jeff
  • 8,020
  • 34
  • 99
  • 157

1 Answers1

2

Just a thought. You could print the WPF window to a BMP first and then convert to a PCL. That's how I would do it at least.

Here is some information of converting the WPF window to a BMP. Generating a screenshot of a WPF window

Here is some information on converting from a BMP to a PCL http://haykmanucharyan.net/Default.aspx?mode=2&id=33

Community
  • 1
  • 1
  • I agree with Alex, this is the simplest approach. You could do lots of work in outputting PCL file with fonts and text etc but his option is by far the shortest distance between A and B. – Douglas Anderson Dec 18 '13 at 04:44