PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Saving a chart
  • Backup in WMF format
  • Differences between grDestinationWMF and <Chart>.SaveWMF
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
Saves a chart that was drawn beforehand in WMF format.
Example
// Saves the chart named CHART_MyChart in the "C:\Charts\Chart.WMF" file
CHART_MyChart.SaveWMF("C:\Charts\Chart.WMF")
Syntax
<Result> = <Chart control>.SaveWMF(<WMF file name>)
<Result>: Boolean
  • True if the chart was saved,
  • False otherwise.
<Chart control>: Control name
Name of the Chart control to use (found in the window editor, page editor or report editor).
<WMF file name>: Character string (with quotes)
Name and full path of the WMF file to create. The file extension is mandatory. This WMF file is created when <Chart>.SaveWMF is called. The file is overwritten and re-created if it already existed.
Remarks

Saving a chart

  • To save a chart, the chart must have been drawn beforehand (<Chart>.Draw). The modifications performed since the last call to <Chart>.Draw will be ignored.
  • The default size of the image is set to 639 x 479. These dimensions are taken into account if the chart was never drawn or if it is not visible.

Backup in WMF format

  • This file can be read by a tool that recognizes WMF format.
  • The size of the file is identical to the size of the destination (size of window size, control or file).
  • We recommend that you preview the chart before it is saved in a file.

Differences between grDestinationWMF and <Chart>.SaveWMF

  • grDestinationWMF is used to define the destination for the next drawing of the chart. When using <Chart>.Draw, the chart will be drawn in the specified file and all the modifications performed since the last chart drawing will be taken into account.
  • <Chart>.SaveWMF is used to save the chart in a file in WMF format. The image saved corresponds to the chart during the last call to <Chart>.Draw. The modifications performed on the chart since the last call to <Chart>.Draw will be ignored.
Component : wd240grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment