PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Prints a chart. The chart is printed:
  • across the page width,
  • inside a rectangular area (invisible during the print).
Note: The print will be performed on the default printer of the current computer.
Example
// Print a Chart control
CHART_MyChart.Print()
Syntax

Printing a chart across the page width Hide the details

<Chart control>.Print()
<Chart control>: Control name
Name of the Chart control to use (found in the window editor).

Printing a chart inside a rectangle Hide the details

<Chart control>.Print(<X1> , <Y1> , <X2> , <Y2>)
<Chart control>: Control name
Name of the Chart control to use (found in the window editor).
<X1>: Real
X coordinate of the top left corner of the rectangle containing the chart. The origin (0,0) is located in the top left corner of the sheet. It takes the physical margins of printer into account.
<Y1>: Real
Y coordinate of the top left corner of the rectangle containing the chart. The origin (0,0) is located in the top left corner of the sheet. It takes the physical margins of printer into account.
<X2>: Real
X coordinate (in millimeters) of the bottom right corner of the rectangle containing the chart. The origin (0,0) is located in the top left corner of the sheet. It takes the physical margins of printer into account.
<Y2>: Real
Y coordinate (in millimeters) of the bottom right corner of the rectangle containing the chart. The origin (0,0) is located in the top left corner of the sheet. It takes the physical margins of printer into account.
Remarks
  • If the chart is printed in a rectangle, the chart will be automatically adjusted inside the rectangle according to its size on the screen. The chart displayed on the screen corresponds to a print preview.
  • The print margins are ignored (iMargin).
  • A chart can be printed from a popup menu.
Component : wd250grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment