PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • EMF file as destination
  • Differences between grDestinationEMF and grSaveEMF
  • Limits
  • Creating and drawing a chart by programming
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
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> , <Name of EMF File>)
<Chart Name>: Character string (with quotes)
Name of chart to use, defined by grCreate.
<Name of EMF File>: Character string (with quotes)
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 next chart drawing. When using grDraw, the chart will be drawn in the specified file and all the modifications performed since the last chart drawing 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 modifications performed on the chart since the last call to grDraw 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 by programming

To draw a chart:
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