PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
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 Property DisplayMode allows to know and to modify the display mode of an Word Processing control or an champ PDF Reader.
Example
// [Web mode] button
TT_FieldDoc.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 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 modify the zoom, use Zoom.
  • 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