Pregunta

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.

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top