Documents

NextGrid & NextDBGrid

NextGrid

NextDBGrid

NextInspector

NextSheet

NextCollection

Misc

Labs

NextGrid .NET

NextSheet Print Method

Related Articles:

Info
  • Skill:
  • Version: 1.0.0
  • Author: Bojan Nikolic
  • Created: 2009-06-27
  • Updated: 2009-06-27
This article require NextSheet 1.3.0

NextSheet starting from version 1.3 include Print method for basic printing.

procedure Print(Zoom: Integer; Options: TNxSheetPrintOptions);


Zoom - Specify printing zoom.

1 pixel in Column, Row, Font... size on screen is equivalent to 1 millimeter on paper.

Example:

NextSheet1.Row[5].Size := 20; // equal to 20 millimeters on paper when is printed


When Zoom is set to 50 (%), 20 pixels on screen will be printed as 10 milimeters on paper.

Options - Specify additional options which may be enabled when printing.

Table 1: Options parameter flags
Value Meaning
poPageNumbers Print page number in right-down corner on every page.
poPageTitle Print Caption property of TNextSheet on every page


Example:

NextSheet1.Caption := 'Printing NextSheet';
NextSheet1.Print(33, [poPageNumbers, poPageTitle]);

Was This Article Useful?

Only constructive comments, code contributions... will be publishes. Questions, non-official discussion will not be published.