PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Physical margin/Logical margin
  • Limit
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The TopMargin property is used to:
  • Find out the top margin of a report.
  • Modify the top margin of a report.
Caution: The top margin of a report can be modified in the report "Opening" event only.

Remark: The different margins of a report are defined in the format of the page ("Layout" from the popup menu of the report).
Example
// Modify the top margin of "RPT_Csutomer" report
RPT_Customer.TopMargin = 25
Syntax

Finding out the top margin of a report Hide the details

<Result> = <Report used>.TopMargin
<Result>: Real
Top margin (in millimeters) of the specified report.
<Report used>: Report name
Name of report to use.

Modifying the top margin of a report Hide the details

<Report used>.TopMargin = <New top margin>
<Report used>: Report name
Name of report to use.
<New top margin>: Real
New top margin (in millimeters) for the specified report.
Remarks

Physical margin/Logical margin

Each printer includes a physical margin where no print is allowed. The BottomMargin, RightMargin, LeftMargin and TopMargin properties are used to define "logical" print margins.
  • If the physical margin is greater than the logical margin: The logical margin is ignored. The report will be compressed in order to be printed on a single page. To prevent report compression, select "Print the report as it is" in the report description window ("Options" tab).
  • If the physical margin is less than the logical margin: The logical margin is taken into account. The physical margin is ignored.
iEndPrinting cancels the margins.

Limit

The TopMargin property only applies to reports.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment