473,836 Members | 1,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing printer page layout (to landscape) from script

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.oBrows er.LocationURL

thisform.bzshel l1.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
programmaticall y the destination printer and page layout (landscape)?

Thank you
Jul 21 '05 #1
3 1675
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."

Jul 21 '05 #2
NWx
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
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:el******** ********@cpmsft ngxa10.phx.gbl. ..
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."

Jul 21 '05 #3
Hi,

Another engineer has posted a reply in microsoft.publi c.vb.ole.automa tion.
HTH.

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

Jul 21 '05 #4

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

Similar topics

3
3636
by: June Moore | last post by:
Hi all, Is there a way to use javascript to change a web page's default layout e.g. change page orientation to landscape or portrait when the user prints a copy of the webpage? Thanks, June..
0
1879
by: Anthony Nystrom | last post by:
I am having trouble with changing printer settings before I raise either the pagesetup dialog or the print preview dialog... Changing the printer name is easy, but I am also trying to change the paper size.... This particular paper size is 30386 Video Top is specific to the printer driver itself... Any sample code as to how to both change the printer and paper size as well as oriention so that the user doesn't have to? This particular printer...
3
362
by: NWx | last post by:
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?
1
1774
by: sravan kumar | last post by:
i need java script code for control the printer page settings from browser.
0
1668
by: Sheoak | last post by:
Hi, I am developing Crystal Reports using VC++.Net Unlike VB.Net in the VC++.Net there is no report objects. How do I change the report's page layout to landscape in the IDE and also programmatically? Below is code in VB. How to do it in VC++.Net? thanks Dim crReportDocument As CRClassLists crReportDocument = New CRClassLists() crReportDocument.PrintOptions.PaperOrientation = 0
0
1088
by: amiparna | last post by:
hi friends, give an example to set the page in landscape in jsp for print without settings in the printing option.. plz help...
5
14342
by: gotonagle | last post by:
hi all i have one page that generates a report (basically a table ) in ASP.i have a button that prints that page using window.print(). now i want to print that page in landscape mode (by default its printing in potrait mode). i dont want to ask user to change orientation from print window. pls let me know if we can have any such javascript or server script that either change the printer setting or make the page or div to be printed as...
4
11310
by: drsvvr | last post by:
Hi everyone!, Please help me to do the setting page layout in data report. i dont think the default setting in data report is portrait, my project is need a landscape report, but i dont know how to do. Please help. Thank you.
2
3806
by: dhivyavasya | last post by:
I have to print a web page in landscape mode automatically when print is given. i dont want to go to settings and change the mode manually each time. help is needed
0
9825
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9671
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10852
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10599
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10257
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9383
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4022
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.