Changing printer page layout (to landscape) from script

  • Thread starter Thread starter NWx
  • Start date Start date
N

NWx

Hi,

I have a web browser control integrated into a form, which display a HTM
page I generate in my program
And I want to be able to print that web page (it is a actually a report)
But I want it to print directly in landscape format.

Is there any way to automate IE to change page payout to landscape
automatically?

Right now I use a Shellexecute like this

lcFile = thisform.oBrowser.LocationURL

thisform.bzshell1.shellexecute(lcFile , JUSTPATH(lcFile ), "PRINT")

Where bzshell1 is a class wrapper around shellexec API function

But, can I automate the web browser control directly to print, and to select
programmatically the destination printer and page layout (landscape)?

Thank you
 
Hi NWx,

Thanks for your posting. Regarding on this issue, I've found another
duplicated thread in another group and some other community members and I
have posted reply there. I'd appreciate if you have a look there. In
addition, if you feel convenient that we continue to discuss in that
thread, please feel free to post there.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Hi,

Thank you for your answer.
Can you tell me in what group you posted an answer, and the message title?
Since I cannot find it?

Thanks
 
Hi,

Another engineer has posted a reply in microsoft.public.vb.ole.automation.
HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top