473,626 Members | 3,531 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How To Change Page Orientation Of Default Printer In Visual Basic ?

3 New Member
How To Change Page Orientation Of Default Printer In Visual Basic At Run Time ?
Oct 14 '07 #1
2 4497
debasisdas
8,127 Recognized Expert Expert
try to use this

Expand|Select|Wrap|Line Numbers
  1. Printer.Orientation = 2       '1 for landscape and 2 for portrait
  2. Me.PrintForm
Nov 4 '07 #2
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

To use "Orientatio n" Property for Datareports, you should have had Visual Studio's SP5 or higher Installed..

Regards
Veena
Nov 4 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
10950
by: Bruce Adams | last post by:
I am using VB6 SP6. I have an application that prints charts. Specifically, it prints line charts of plant process information nightly. The code is a mix of API calls and Printer methods. I am currently migrating to a new PC running XP. The charting application is hanging on a single line of code: Printer.Orientation = vbPRORLandscape It throws an error '484', "Problem getting information from the printer. Make sure printer is set up...
5
7114
by: Hank | last post by:
My Access 2000 code has been running for several years in our main plant. Now we need to install it, as a stand-along application, at remote sites, some of which are out of state. My problem is the printer destination for special reports such as stickers and mailing labels. The Mailing Label report is, of course, designed here for a specific printer (Mailing Label). At another site, the name could be completely different. Other than...
0
2510
by: Marc Scheuner [MVP ADSI] | last post by:
Folks, How can I get the default printer (not just its name - the "whole" thing), and change its paper orientation to landscape? I'm trying to print a hosted HTML document (inside a web browser control), and I can't seem to find a way to make sure the bloody thing prints in landscape....... Any pointers welcome!!
2
13624
by: Sean McKaharay | last post by:
I want to find out how I can change the page orientation of a printer.
2
2872
by: Just Me | last post by:
I want to programmatically change the paper orientation of the systems default printer in such a way that the new orientation shows for the printer under: Start/Printer and Faxes Can anyone tell me how to do that? I have some unmanaged code that no longer works for some unknown reason.
1
12208
by: goJoe | last post by:
Hello! i amn trying to add a Visuail basic 6 code to an excisting code that has the purpose to change the current default printer to another printer by name and then after the printer to change back to the old default printer again... Anyone knows how to do this easy??
1
18277
by: PCB | last post by:
Hi all! I have a subroutine that prints reports on a specific printer. The code works fine as long as all the printers available to the computer are on the network. However, if the computer also has a local printer, the report is prints locally. What I'm I doing wrong! The complete subroutine follows: Private Sub PrintReport(strReportName As String) On Error GoTo PrintReport_Err
1
3325
by: christianlott1 | last post by:
This is easy to do in word but is it possible in access? I want the first page to print on company letterhead and other pages to print on regular paper. Some of the pages I want landscape, others I want to remain portrait. The printer properties only allow me to set at design time. Stuff like this doesn't work: Private Sub Report_Page()
7
2559
by: Iain Wilson | last post by:
I am pulling my hair out trying to print various objects from a .net web page My apologies for cross posting but I need an answer and my previous post has attracted no interest. ASP.Net 2.0 using C# This is a simple web page on our intranet (written as a test) and all I am trying to do is print a document to a named printer. If I use a StreamReader then I get an output to the printer. This
0
8266
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
8705
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
8365
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
8505
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...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2626
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.