ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / HTML control
  • Overview
  • Control in a window, report, or static or dynamic page
  • Creating an HTML control
  • Creating an HTML control in a report
  • Control in a report: Characteristics
  • Description window and programming
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
Overview

Control in a window, report, or static or dynamic page

The HTML control can be used:
  • WINDEVUniversal Windows 10 App In a window.
    The HTML control of a window displays an HTML page.
    This control corresponds to the HTML Display control.
  • WINDEVWindowsUniversal Windows 10 App In a report.
    The HTML control of a report can be used to print HTML code or the contents of a local page.
This help page presents only the HTML control in pages or reports. For windows, please see the page about the HTML Display control.
Creating an HTML control
WINDEVWindowsUniversal Windows 10 App

Creating an HTML control in a report

To create an HTML control in a report:
  1. On the "Creation" tab, in the "Text" group, click "HTML".
  2. Click where you want to create the control. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu.
Remark: Starting with version 22, the HTML control of a report is an Static control of type HTML.
WINDEVWindowsUniversal Windows 10 App
Control in a report: Characteristics

Description window and programming

The HTML control is a Static control of type HTML. You can enter text directly in the "General" tab of the control description window.. This text will be automatically converted to HTML.
The HTML control displays:
  • the content of a local HTML file.
  • the HTML content of an item.
You can programmatically initialize the HTML control by assigning:
  • HTML code directly. For example:
    HTM_Code = "'''Hello'''"
  • the path of a local HTML file.
    HTM_Code = fExeDir() + "\MyHTMLFile.htm"
Remarks:
  • PNG and SVG images in the HTML content are not supported.
  • If the CSS style sheet corresponds to an external file, it is ignored.
  • All the external files that must be found on Internet are ignored.
  • JavaScript codes are not run.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/18/2023

Send a report | Local help