Delphi/CB
•  Greatis •  Security •  AppDatabase •  Utilities •  Visual Basic • .NET •  just4fun
Delphi / C++ Builder
Components, utilities and tips for Delphi and C++ Builder developers
Hot Offer
Save your money!
Featured
Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

News Tips .NET Software VCL Software Partners  

Print QuickRep on different paper size
PaperSize can be set to any of the following values: Letter, LetterSmall, Tabloid, Ledger, Legal, Statement, Executive, A3, A4, A4Small, A5, B4, B5, Folio, Quarto, qr10X14, qr11X17, Note, Env9, Env10, Env11, Env12, Env14, CSheet, DSheet, and ESheet.
These formats are all the default paper sizes defined in Windows. Selecting a paper size will automatically be reflected in the PaperLength and PaperWidth properties.
You can also set PaperSize to Custom and select any PaperLength and PaperWidth you want. Note that not all printers support all paper sizes. Also, many printers does not support custom paper size or can only have custom size within certain values.
If you select a paper size not supported by a printer QuickReport will automatically switch to the default paper size when preparing the report. The default paper size is selected in the printer driver setup.
This example shows how we can change PaperLength and PaperWidth properties with Custom parameter in the PaperSize property.

procedure TForm1.Button1Click(Sender: TObject);
begin
  QuickRep1.Preview;
end;

procedure TForm1.Edit1Change(Sender: TObject);
begin
  QuickRep1.Page.Length:=StrToInt(Edit1.Text);
end;

procedure TForm1.Edit2Change(Sender: TObject);
begin
  QuickRep1.Page.Width:=StrToInt(Edit1.Text);
end;

For more
Delphi Help

Download source


Our Partner
DevArchive.com
Recommended
just4fun
Useful Resources
Win32.hlp Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com
Newsletters
Subscribe to our news!    Subscribe to our news!


Greatis Software Greatis | Security | AppDatabase | Utilities | Delphi/CB | Visual Basic | .NET | just4fun

Contacts | Add to Favorites | Recommend to a Friend | Privacy Policy | Copyright © 1998-2008 Greatis Software