473,797 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print Orientation

How can i change the print orientation from code?
Maybe somewhere in registry...?

thank you
Jul 21 '05 #1
1 1519
Public Sub Printing()
Try
streamToPrint = New StreamReader(fi lePath)
Try
printFont = New Font("Arial", 10)
Dim pd As New PrintDocument()
AddHandler pd.PrintPage, AddressOf pd_PrintPage
pd.PrinterSetti ngs.PrinterName = printer
' Set the page orientation to landscape.
pd.DefaultPageS ettings.Landsca pe = True
pd.Print()
Finally
streamToPrint.C lose()
End Try
Catch ex As Exception
MessageBox.Show (ex.Message)
End Try
End Sub

"mystique" <mi***@softhome .net> wrote in message
news:uQ******** ******@TK2MSFTN GP15.phx.gbl...
How can i change the print orientation from code?
Maybe somewhere in registry...?

thank you

Jul 21 '05 #2

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

Similar topics

2
8379
by: Yaron Cohen | last post by:
Hi, I would like to ask for your help. I am using IE5.5. I have a wide page with horizontal scroll bar. The problem is that I get only 1 page when printing it using "file->print" or "window.print".
2
3358
by: CheGueVerra | last post by:
Hi All, Wondering if there is a way to force the print orientation to landscape using css? Thanks
2
4528
by: ywchan | last post by:
I have tried to print pdf by using gswin32 and call it through the process class but I can't change the paper orientation....no matter I have set dORIENT1 = true / false...it is printed as portrait.... Does anyone know how to change the paper orientation in my case? or having some other idea to print a pdf file in C#? I have also tried to call AcroRd32.exe throught the process class...but it
1
1392
by: ywchan | last post by:
I have tried to print pdf by using gswin32 and call it through the process class but I can't change the paper orientation....no matter I have set dORIENT1 = true / false...it is printed as portrait.... Does anyone know how to change the paper orientation in my case? or having some other idea to print a pdf file in C#? I have also tried to call AcroRd32.exe throught the process class...but it
1
206
by: mystique | last post by:
How can i change the print orientation from code? Maybe somewhere in registry...? thank you
1
3608
by: iwongu | last post by:
Hi, I have a question about std::wcout and its underlying C functions. According to C99, a stream have an orientation type that is one of byte-oriented or wide-one, and it is determined by the first using C function on that stream. And the specific orientation functions should not be applied to the stream that have other orientation.
2
2951
by: jung | last post by:
hello there.. need help!. by default, data reports are printed in portrait.. how to print it in landscape?. i've tried to search it in different forums and checked if their answers can help me but didn't solve my problem.. one of the suggestions was to use this: reportname.orientation = rptorientlandscape
0
2476
by: Brad Pears | last post by:
I have a vb.net 2005 application where the user can select to preview an image. The users are CAD designers and typically have their default printer set to a plotter with a large paper size etc... For this particular application, the drawings they are viewing will always be in legal size - portrait. What is happening now is that the preview is using the print settings from the default printer. I would like to override this when...
0
1544
by: vandervelde | last post by:
Hi, A couple of machines in the office have recently upgraded to word 2003 and the printing macros for these machines are working intermittently. The macro takes the computer name and a printer tray name stored in a text file and passes them through the macro to print out on the respective trays. i.e. intTray3 is Tray3. I haven’t had much experience with word 2003 so any direction or help is appreciated Option Explicit Option...
0
9537
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
10469
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...
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10209
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
10023
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
9066
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
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
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.