Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Fri, 23 May 2008 09:58:00 -0700,    group: microsoft.public.win32.programmer.tools        back       


Printing documents to Microsoft XPS Document Writer without user i   
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
date: Fri, 23 May 2008 09:58:00 -0700   author:   unknown

Re: Printing documents to Microsoft XPS Document Writer without user i   
GoldTree@home.com wrote:
> 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?
> 

If you want to print html, see PrintHtml() function in this thread 
http://tinyurl.com/3fx5na
date: Sat, 24 May 2008 10:50:57 +0200   author:   Nico

Re: Printing documents to Microsoft XPS Document Writer without us   
Hi,

I have no problem printing the HTML. The problem is bypassing the "Save the 
file as" dialog when printing programatically.

I later found a thread discussing the same issue in another thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1732872&SiteID=1

It seems that there is no easy solution.

Regards,

GoldTree


"Nico" wrote:

> GoldTree@home.com wrote:
> > 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?
> > 
> 
> If you want to print html, see PrintHtml() function in this thread 
> http://tinyurl.com/3fx5na
>
date: Tue, 27 May 2008 09:40:01 -0700   author:   unknown

Re: Printing documents to Microsoft XPS Document Writer without us   
GoldTree@home.com wrote:
> Hi,
> 
> I have no problem printing the HTML. The problem is bypassing the "Save the 
> file as" dialog when printing programatically.

I don't get any "save as" dialog, except for pdf..
date: Tue, 27 May 2008 23:33:13 +0200   author:   Nico

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us