Solved

Changing default printer page orientation

Posted on 1997-06-16
2
592 Views
Last Modified: 2010-04-03
I'm trying to print Delphi 3.0 TRichEdit contents to a desired page orientation, without having the user use the TPrinterSetupDialog dialog box.  Since TRichEdit uses the default printer (not the TPrinter object), how can I change the default printer page orientation in code?
0
Comment
Question by:jwill01
2 Comments
 

Accepted Solution

by:
XSpider earned 100 total points
ID: 1337082
Every Delphi program have object Printer. Printer represent default windows printer. You can change Page orientation by setting Orientation property to poLandscape or poPortrait.
0
 

Author Comment

by:jwill01
ID: 1337083
That worked fine!

I didn't realize TPrinter represented the default printer.

Thanks for the help.  I appreciate your time.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now