PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
Prints a chart. The chart is printed:
  • across the page width,
  • inside a rectangular area (invisible during the print).
Remark: The print will be performed on the default printer of the current computer.
Example
// Print a chart created through programming
grPrint("MyChart")
// Print a Chart control
grPrint(CHART_MyChart)
Syntax

Printing a chart across the page width Hide the details

grPrint(<Chart name>)
<Chart name>: Control name or character string
Name of the chart to print. This name corresponds to:
  • the chart name defined through programming with grCreate.
  • the name of the Chart control in the window editor.

Printing a chart inside a rectangle Hide the details

grPrint(<Chart name> , <X1> , <Y1> , <X2> , <Y2>)
<Chart name>: Control name or character string
Name of the chart to print. This name corresponds to:
  • the chart name defined through programming with grCreate.
  • the name of Chart control found in the window editor.
<X1>: Real
X-coordinate of the upper-left corner of the rectangle containing the chart. The origin (0,0) is located in the upper-left corner of the sheet. It takes the physical margins of the printer into account.
<Y1>: Real
Y-coordinate of the upper left corner of the rectangle containing the chart. The origin (0,0) is located in the upper-left corner of the sheet. It takes the physical margins of the printer into account.
<X2>: Real
X-coordinate (in millimeters) of the lower-right corner of the rectangle containing the chart. The origin (0,0) is located in the upper-left corner of the sheet. It takes the physical margins of the printer into account.
<Y2>: Real
Y-coordinate (in millimeters) of the lower right corner of the rectangle containing the chart. The origin (0,0) is located in the upper-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.
  • A chart can be printed without being displayed on the screen. In these conditions, the chart will have the same appearance as if it were displayed in a window of size 800*600. The window dimensions can be configured by initializing the coordinates with grWndSize.
Component: wd270grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Exemplo Criar Gráfico e Listar
iParameter()
grPrint(CHART_clientes)

//Blog Com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/05/windev-grafico-1-criar-grafico-e-listar.html
De matos AMARILDO
20 May 2016