ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • EMF file as destination
  • Differences between grDestinationEMF and grSaveEMF
  • Limits
  • Creating and drawing a chart through 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
Defines a meta file as chart destination (EMF means Enhanced Meta File). This file will be created during the next chart drawing (grDraw).
Example
// Define the "C:\Charts\Chart.EMF" file as destination of "MyChart"
grDestinationEMF("MyChart", "C:\Charts\Chart.EMF")
Syntax
grDestinationEMF(<Chart name> , <EMF file name>)
<Chart name>: Character string
Name of chart to use, defined by grCreate.
<EMF file name>: Character string
Name of EMF file where the chart will be saved. This file is created during the call to grDraw.
Remarks

EMF file as destination

  • During the next call to grDraw, the chart will be drawn in the <Name of EMF file> file.
  • This file can be read by a tool that recognizes the EMF format.
  • The size of this file can be defined by grWndSize.
  • We recommend that you preview the chart before it is saved in a file.
  • We recommend that you use grDestinationEMF rather than grDestinationWMF.

Differences between grDestinationEMF and grSaveEMF

  • grDestinationEMF is used to define the destination of the next chart drawing. When grDraw is used, the chart will be drawn in the specified file and all the changes made since the chart was last drawn will be taken into account.
  • grSaveEMF is used to save the chart in a file in EMF format. The image saved corresponds to the chart during the last call to grDraw. The changes made to the chart since grDraw was last called will be ignored.

Limits

  • This function cannot be used with the Chart controls.
  • This function cannot be used in the report editor.
  • WINDEV 3D chart: This function cannot be used: the DirectX software, used to handle the 3D charts, does not allow you create files in EMF format.

Creating and drawing a chart through programming

To draw a chart:
Component: wd290grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help