ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with reports and controls
  • Physical margin/Logical margin
  • Limit
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The LeftMargin property is used to:
  • Find out the left margin of a report.
  • Modify the left margin of a report.
Caution: It is only possible to modify the left margin of a report in the "Open report" event..

Note The different margins of a report are defined in the page format ("Page setup" option in the report context menu).
Example
// Modify the left margin of "RPT_Customer" report
RPT_Customer.LeftMargin = 25
Syntax

Finding out the left margin of a report Hide the details

<Result> = <Report used>.LeftMargin
<Result>: Real
Left margin (in millimeters) of the specified report.
<Report used>: Report name
Name of the report to be used.

Modifying the left margin of a report Hide the details

<Report used>.LeftMargin = <New left margin>
<Report used>: Report name
Name of the report to be used.
<New left margin>: Real
New left 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 not taken into account. 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 lower than the logical margin The logical margin is taken into account. The physical margin is ignored.
iEndPrinting cancels the margins.

Limit

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

Last update: 05/10/2025

Send a report | Local help