GoldTree@home.com
2008-05-23 16:58:00 UTC
Hi,
I need to generate XPS file by programmatically printing from WebBrowser
control in C#. The "Save the file as" dialog will popup. There is a solution
in the link below by Fen Yuan.
http://blogs.msdn.com/fyuan/archive/2007/02/24/printing-documents-to-microsoft-xps-document-writer-without-user-interaction.aspx
It is kind of a hack as one comment said. It is not robust.
Is there a more elegant way?
Thanks,
GoldTree
I need to generate XPS file by programmatically printing from WebBrowser
control in C#. The "Save the file as" dialog will popup. There is a solution
in the link below by Fen Yuan.
http://blogs.msdn.com/fyuan/archive/2007/02/24/printing-documents-to-microsoft-xps-document-writer-without-user-interaction.aspx
It is kind of a hack as one comment said. It is not robust.
Is there a more elegant way?
Thanks,
GoldTree