PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Creating and drawing a chart by 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 14, this function is kept for backward compatibility. We recommend that you use grDestinationEMF.
Defines a meta file as chart destination. This metafile is created during the call to grDraw.
Notes:
  • We recommend that you 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 (with quotes)
Name of chart to use, defined by grCreate.
<Metafile Name>: Character string (with quotes)
Name of meta file where the chart will be saved. This meta file is created during the call to grDraw.
Remarks

Creating and drawing a chart by 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 next chart drawing. When using grDraw, the chart will be drawn in the specified file and all the modifications performed since the last drawing of the chart 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 modifications performed on the chart since the last call to grDraw will be ignored.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment