Solved

Changing default printer page orientation

Posted on 1997-06-16
2
591 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
Comment Utility
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
Comment Utility
That worked fine!

I didn't realize TPrinter represented the default printer.

Thanks for the help.  I appreciate your time.


0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

772 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

11 Experts available now in Live!

Get 1:1 Help Now