Sasa Juric

Hello,
I am trying to do print some HTML from my javascript code. I have some page which is displayed in the browser. In that page there is invisible WebBrowser control on the page (created via <OBJECT element>). The invisible control is pointed to the HTML which should to be printed.

When I try to print the content of the WebBrowser control, the print dialog pops up. I tried via window.print, as well as via ExecWB with various values for the second parameter, however I always get the print dialog. Is there any way to avoid this

I have complete control over target configuration, so I can mess with registry or do anything similar, if required.

Thanks in advance,
Sasa


Re: Internet Explorer Web Development Suppressing print dialog in IE7

Adam Plocher

Sasa, if you don't mind me asking, what exactly are you doing I threw together a little WinForms .NET app a couple weeks ago because I'm trying to automate some web-based print jobs. My app uses the Default Printer and does not prompt for anything. It's using an IE control to render it, so it should look the same... The app talks to a DB and pulls HTML out and prints it, but it would be easy to modify to use a web site, instead...

I could probably modify it or provide you with the source code if you want to mess with it...

Lemme know

-Adam





Re: Internet Explorer Web Development Suppressing print dialog in IE7

Sandeep Bhutani

Hi Sasa,

I am also facing the same problem and need the solution asap. Hope you would have found the solution. Can you spare ur few minutes to tell me what have you done to solve this problem at my id sandeepbhutani304@gmail.com

Thanks in advance,

Sandeep Bhutani






Re: Internet Explorer Web Development Suppressing print dialog in IE7

jedediah

Hey Adam,

I'm finding myself in need of something like you're describing. Any chance you're willing to send out the source or publish it somehwere

Thanks

-JD




Re: Internet Explorer Web Development Suppressing print dialog in IE7

Adam Plocher

Jedidiah, sure I'll put it up on my website. I'm going to be kinda busy tonight, so it might not be until tomorrow. I will let you know when it's up, though.

-Adam




Re: Internet Explorer Web Development Suppressing print dialog in IE7

tipster8

Hi! Have any of you found a solution to this If so, can you please post it somewhere.

Thank you : )