PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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
..RightMargin is used to:
  • Find out the right margin of a report.
  • Modify the right margin of a report.
Caution: The right margin of a report can only be modified in the report "Opening" event.
Note: The different margins of a report are defined in the format of the page ("Layout" from the popup menu of the report).
Versions 18 and later
iPhone/iPad This property is now available for the reports in the iPhone/iPad applications.
New in version 18
iPhone/iPad This property is now available for the reports in the iPhone/iPad applications.
iPhone/iPad This property is now available for the reports in the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Modify the right margin of "RPT_Customer" report
RPT_Customer..RightMargin = 25
Syntax

Finding out the right margin of a report Hide the details

<Result> = <Report name>..RightMargin
<Result>: Real
Right margin (in millimeters) of the specified report.
<Report name>: Character string (with or without quotes)
Name of report to use.

Modifying the right margin of a report Hide the details

<Report name>..RightMargin = <New right margin>
<Report name>: Character string (with or without quotes)
Name of report to use.
<New right margin>: Real
New right margin (in millimeters) for the specified report.
Remarks

Physical margin/Logical margin

Each printer includes a physical margin where no print is allowed. ..BottomMargin, ..RightMargin, ..LeftMargin and ..TopMargin are used to define the "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

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