Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEprintgraph

BOOL PEprintgraph(hObject, nWidth, nHeight, nOrient)

 

HWND 

hObject

The handle returned from PEcreate.

INT 

nWidth

Width in 1/100th millimeters.

INT 

nHeight

Height in 1/100th millimeters.

INT 

nOrient

0=Driver Default, 1=Landscape, 2=Portrait.

 

This function prints the object's image to the default printer. If nWidth and nHeight are both zero, the image will print full page with a small margin around the chart. Else if nWidth and nHeight are non-zero, the chart will be centered on the page. nOrient controls paper orientation. The current state of PrintDpi and PrintTechnology properties will control which GDI commands are used to transfer the image to printer.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

.NET developers, see PeFunction.PrintGraph

 

Ocx|Vcl developers, see PEprintgraph Method or the PEactions property which can call this function like... Pego1.PEactions = 18

 

In Delphi, use...

PEprintgraph as defined in PEGRPAPI.PAS

...or...

PEGraph1.PEactions := gPrintGraph; {Calls PEprintgraph}

 

See Also: PElaunchprintdialog, PEprintgraphEx, Chapter 5 Printing within VC, PrintDpi, PrintTechnology