Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 27 Apr 2024, 15:55

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 25 Jan 2014, 02:45 
Offline

Joined: 18 Dec 2013, 01:08
Posts: 19
How can i change the page orientation to landscape/ portrait and page size from PrintDbGrideh without setting from the printer setup?


Top
 Profile  
 
PostPosted: 26 Jan 2014, 12:16 
Offline
Администратор

Joined: 22 Dec 2011, 20:19
Posts: 335
Hello

You can use next code to change the page orientation:

uses ......, PrViewEh, Printers.
..............
procedure TForm1.bPreviewClick(Sender: TObject);
begin
PrinterPreview.Orientation := poLandscape;
PrintDBGridEh1.Preview;
end;

Unfortunately, VCL doesn't have methods to change page size.

Bets regards
Admin

_________________
Best regards
Admin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 65 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group