ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • EMF file as destination
  • Differences between grDestinationEMF and grSaveEMF functions
  • Limits
  • Creating and drawing a chart programmatically
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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
// Définition du fichier "C:\Graphes\Graphe.EMF" comme destination du graphe "MonGraphe"
grDestinationEMF("MonGraphe", "C:\Graphes\Graphe.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 functions

  • 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 3-D graph: This function cannot be used: the DirectX software used to manipulate 3-D graphs cannot create EMF format files.

Creating and drawing a chart programmatically

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

Last update: 03/27/2025

Send a report | Local help