Solved

Changing default printer page orientation

Posted on 1997-06-16
2
593 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug For loops? 3 49
Firemonkey android show image from resource ? 1 41
Delphi...Split view - idea? 1 67
Sending files from  idTcpServer Socket to idTcpClient 2 39
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 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

14 Experts available now in Live!

Get 1:1 Help Now