ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / XLS file functions
  • Properties specific to xlsLayout variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
xlsLayout (Variable type)
In french: xlsMiseEnPage
The xlsLayout type is used to define all the layout characteristics to print a sheet of an XLSX document in a Spreadsheet control. You can define and change the characteristics of this layout using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
New in version 2025
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
Example
// Current sheet [NoMargins]
xLayout is xlsLayout = PSHEET_SpreadsheetControl.PageLayout
xLayout.LeftMargin = 0
xLayout.RightMargin = 0
PSHEET_SpreadsheetControl.PageLayout = xLayout
Properties

Properties specific to xlsLayout variables

The following properties can be used to manipulate the layout of an XLSX document:
Property nameType usedEffect
HeaderPrintedBoolean
  • True (default) to print the sheet header.
  • False otherwise.
HeaderVisibleBoolean
  • True (default) to show the sheet header in the Spreadsheet control.
  • False otherwise.
PageHeaderRealHeight of the page header in the printed sheet, expressed in millimeters.
PageHeightRealHeight of the printed page, expressed in millimeters.
PageWidthRealWidth of the printed page, expressed in millimeters.
BottomMarginDouble realBottom margin of the printed page, expressed in millimeters.
RightMarginRealRight margin of the printed page, expressed in millimeters.
LeftMarginRealLeft margin of the printed page, expressed in millimeters.
TopMarginRealTop margin of the printed page, expressed in millimeters.
AdjustmentModeInteger constant
  • adjustmentModeNone: No adjustment is applied.
  • adjustmentModeColumns: All columns are adjusted to the width of the control.
  • adjustmentModeRows: All rows are adjusted to the height of the control.
  • adjustmentModeRowsAndColumns: The spreadsheet is adjusted to the dimensions of the Spreadsheet control.
LandscapeOrientationBoolean
  • True (default) for landscape orientation,
  • False for portrait orientation.
PageFooterRealHeight of the footer in the printed page, expressed in millimeters.
GridlinesPrintedBoolean
  • True (default) to print the gridlines around the cells,
  • False to print without gridlines.
GridlinesVisibleBoolean
  • True (default) to show the gridlines around the cells in the Spreadsheet control,
  • False otherwise.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/03/2024

Send a report | Local help