BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

QR papersize problem.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Rene Michael
Guest





PostPosted: Wed Sep 24, 2003 6:15 pm    Post subject: QR papersize problem. Reply with quote



Hi,

I'm using QR in my program, and when designing reports, the standard setting
for paper.papersize is "A4".

Now this works fine in Europe, but my US users are complaining... They want
a setting of "Letter" instead.

In a beforeprint event I can switch it - but how do I get the papersize
setting from the default windows printer?

I have tried the following code:

with TQRPrinterSettings.Create do
begin
Printerindex:=-1;
frm_rpt_port.Page.PaperSize:=PaperSize;
frm_rpt_port.Page.Orientation:=Orientation;
frm_rpt_port.PrinterSettings.Copies:=Copies;
Free;
end;

or
frm_rpt_port.Page.PaperSize:=frm_rpt_port.PrinterSettings.PaperSize;

But they always seem to return "Letter" even though I change the printer
setting in windows.

So how do I get the correct printer setting from window, so that I can set
QR to use the setting from the windows standard choosen printer?

Regards, Michael.

--
- - - -
Do they know your economy - and what more?
- Keep your investments private with Amateur Invest:
www.amateur-invest.com


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.