Pring Web page?

  • Thread starter Thread starter Shane
  • Start date Start date
S

Shane

I have a program that just looks up 14 web address and i want to be able to
print them out.. I have print them now, but sometime they are the page is to
big to fit on one page, so i want to be able to do "Fit to Page".

Is there away that i can do a "fit to Page" in code? can please give me a
exp. or some place i can look at..

I use this code

AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER)

Thank you,

Shane
 
Hi Shane,

I don't think so, the webbrowser is reusing Internet Explorer, if you find a
way doing what you want with Internet Explorer you can do that.

A nice thing from the webbrowser is that it concat all documents, images,
etc in a webpage.

When you take the documents as parts, you will have to do that your self, I
do not believe that that is a one mans job.

Cor
 
* "Shane said:
I have a program that just looks up 14 web address and i want to be able to
print them out.. I have print them now, but sometime they are the page is to
big to fit on one page, so i want to be able to do "Fit to Page".

Is there away that i can do a "fit to Page" in code? can please give me a
exp. or some place i can look at..

I use this code

AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER)

AFAIS that's not possible.
 
ok, what about this I also have this code that I was using

AxWebBrowser1.Document.parentWindow.execScript("window.print();", "JScript")

this brings up a print box and then lets me change it there, but it does not
print the whole thing, but I can do a "Fit to PAGE" on it..

would there be a way that I can make a bmp or jpg of it and resize so it
still readable on the print out?

Shane
 
Back
Top