ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Word Processing functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Example
Syntax
<Result> = <Document to convert>.ToHTML([<Path>] [, <Managing the CSS styles>])
<Result>: Boolean or Buffer
  • If <Path> is specified:
    • True if the file was generated,
    • False otherwise. To get more details on the error, use ErrorInfo.
  • If <Path> is not specified, <Result> corresponds to a buffer containing the HTML code.
<Document to convert>: Document variable
<Path>: Optional character string
Path of HTML file to be generated. If the path is not specified, the HTML code is returned in buffer format.
<Managing the CSS styles>: Optional constant
Style attributes to use:
dthWithCSS
(Default value)
Applies external CSS styles
The CSS code is generated in a ".CSS" file external to the HTML page. This file is created in the same directory as the generated HTML page. It has the same name as the HTML page, with the ".CSS" extension. A link to this file is added into the HTML code of the page.
If the document contains images, these ones are saved in a subdirectory named like the generated HTML file.
dthWithoutCSSApplies CSS styles inline CSS code is generated and integrated into the HTML code of the generated page. Each tag contains the CSS styles applied to it.
If the document contains images, they are integrated and are encoded in base64.
This constant allows, for example, to create an HTML generation adapted to new email messaging.
Note: if an image contained in an e-mail is over 100 Kb, it will generally be displayed as an e-mail attachment, even if it is encoded in base 64 in the e-mail.
Business / UI classification: UI Code
Component: wd300mdl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/10/2024

Send a report | Local help