[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Changing default printer page orientation

Posted on 1997-06-16
2
Medium Priority
?
603 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
XSpider earned 400 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

650 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