Question

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.

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top