PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The DisplayMode property is used to get and change the display mode of a Word Processing or PDF Reader control.
Example
// [Web mode] button
WP_Doc.DisplayMode = displayModeWeb
Syntax

Finding out the display mode in a Word Processing or PDF Reader control Hide the details

<Result> = <Control used>.DisplayMode
<Result>: Integer constant
Current display mode of the control:
displayModeTwoPagesThe document pages are displayed two by two on the screen.
displayModeTwoPagesWithCoverThe document pages are displayed two by two on the screen. The first page is considered as being a cover. The first page is displayed on the right.
Remark: This constant is not available for the Word Processing control.
displayModeOnePage
(Default value)
The document is displayed as it will be printed.
displayModeWebThe document is displayed in the format of a Web page.
Remark: This constant is not available for the PDF Reader control.
<Control used>: Control name
Name of Word Processing or PDF Reader control to use.

Modifying the display mode in a Word Processing or PDF Reader control Hide the details

<Control used>.DisplayMode = <New mode>
<Control used>: Control name
Name of Word Processing or PDF Reader control to use.
<New mode>: Integer constant
Display mode to apply to the control:
displayModeTwoPagesThe document pages are displayed two by two on the screen.
displayModeTwoPagesWithCoverThe document pages are displayed two by two on the screen. The first page is considered as being a cover and it is displayed on the right.
Remarks:
  • Using this constant changes the display mode but it does not change the document zoom in the PDF Reader control. To change the zoom, use the Zoom property.
  • This constant is not available for the Word Processing control.
displayModeOnePage
(Default value)
The document is displayed as it will be printed.
displayModeWebThe document is displayed in the format of a Web page.
Remark: This constant is not available for the PDF Reader control.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment