AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Procesador de texto
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Converts the content of a Word Processing control into an HTML file.
Ejemplo
// Exports the content of a Word Processing control to HTML
// Click code of "HTML export" button
WP_MyDoc.ToHTML(fExeDir() + [fSep] + "wp.htm")
Sintaxis
<Result> = <Word Processing control>.ToHTML([<Path>] [, <Managing the CSS styles>])
<Result>: Booleano o búfer
  • 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.
<Word Processing control>: Nombre del control
Name of the Word Processing control to use.
<Path>: Cadena de caracteres opcional
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>: Constante opcional
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 Email is larger than 100 Kb, it will generally be displayed as an attachment to the Email, even if it is encoded in base 64 in the Email.
Componente: wd300mdl.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 17/10/2024

Señalar un error o enviar una sugerencia | Ayuda local