Printint the content of a webbrowser control

Hi,

I have a winform application with a webbrowser control. I can print
the content by doing myWebBrowserControl.Print().

But I'd like to use a PrintDialog control, which I need to pass a
PrintDocument. That's where I get confused. How can I 'convert' the
content of my WebBrowser control to a PrintDocument ?

Thanks
graphicsxp [ Mi, 02 April 2008 14:44 ] [ ID #1933593 ]

Re: Printint the content of a webbrowser control

On 2 Apr, 13:44, graphic... [at] googlemail.com wrote:
> Hi,
>
> I have a winform application with a webbrowser control. I can print
> the content by doing myWebBrowserControl.Print().
>
> But I'd like to use a PrintDialog control, which I need to pass a
> PrintDocument. That's where I get confused. How can I 'convert' the
> content of my WebBrowser control to a PrintDocument ?
>
> Thanks

Can anyone help with that please ?
graphicsxp [ Di, 15 April 2008 16:26 ] [ ID #1942559 ]
Microsoft » microsoft.public.dotnet.general » Printint the content of a webbrowser control

Vorheriges Thema: Can't get the error message to go away
Nächstes Thema: Winforms User Controls - How do I bind those to a dataset on the host form