473,320 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem printing contents of embbeded browser control.

I have a browser control embedded in my application and I just want to print
the report it contains. Instead - it prints out a screen dump of the
browser (scroll bars and everything). How do I do this?

I have posted below where I've gotten so far. If you have lived through
this, I would greatly appreciate any help.

Thanks,

David

Object ob1 = null;
Object ob2 = null;
_ReportBrowser.ExecWB(SHDocVw.OLECMDID.OLECMDID_PR INT,SHDocVw.OLECMDEXECOPT.
OLECMDEXECOPT_PROMPTUSER,ref ob1,ref ob2);


BTW, I found a number of sample apps on the web: all use the same as above
and in testing - they work fine. I can't find any difference.
Nov 16 '05 #1
1 956
It appears to have something to do with the content. Other websites don't
have a problem.

Any ideas?

"SummitEMR" <su*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
I have a browser control embedded in my application and I just want to print the report it contains. Instead - it prints out a screen dump of the
browser (scroll bars and everything). How do I do this?

I have posted below where I've gotten so far. If you have lived through
this, I would greatly appreciate any help.

Thanks,

David

Object ob1 = null;
Object ob2 = null;
_ReportBrowser.ExecWB(SHDocVw.OLECMDID.OLECMDID_PR INT,SHDocVw.OLECMDEXECOPT. OLECMDEXECOPT_PROMPTUSER,ref ob1,ref ob2);


BTW, I found a number of sample apps on the web: all use the same as above
and in testing - they work fine. I can't find any difference.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
3
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to...
3
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.