ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • Creating and drawing a chart through programming
  • WMF file for destination
  • Differences between grDestinationWMF and grSaveWMF
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
Warning
From version 14, this function is kept for backward compatibility. It is recommended to use grDestinationEMF.
Defines a meta file as chart destination. This metafile is created during the call to grDraw.
Remarks:
  • It is recommended to use grDestinationEMF.
  • This function cannot be used with the Chart controls.
  • This function cannot be used in the report editor.
Example
// Define the "C:\Charts\Chart.WMF" file as destination of "MyChart"
grDestinationWMF("MyChart", "C:\Charts\Chart.WMF")
Syntax
grDestinationWMF(<Chart name> , <Metafile name>)
<Chart name>: Character string
Name of chart to use, defined by grCreate.
<Metafile name>: Character string
Name of meta file where the chart will be saved. This metafile is created when grDraw is called.
Remarks

Creating and drawing a chart through programming

To draw a chart:

WMF file for destination

  • During the next call to grDraw, the chart will be drawn in the meta file named <Name of Meta File>.
  • This file can be read by a tool that recognizes WMF format.
  • The size of this meta file can be defined by grWndSize.
  • We recommend that you preview the chart before it is saved in a file.

Differences between grDestinationWMF and grSaveWMF

  • grDestinationWMF 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.
  • grSaveWMF is used to save the chart in a file in WMF 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.
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