Navigation:  Programmer's Reference >

Printing

 

Previous pageReturn to chapter overviewNext page

GRAPH-XT supports several printing modes. All printing modes are bitmap based (HPGL and Postscript drivers are not supported).

DUMP GRAHPICS

DUMP GRAPHICS is supported in all color modes (256 color mode as well as high color mode). We recommend to use the library function FNDplot_dumpgraph since this function implements a wide range of DUMP options like paper orientation, INVERT black and white, partial dumps, append options and some more.

Example:

INTEGER Flags,Dumpsize,Dummy

Flags=1+2+4+8+16+32

Dumpsize=100               ! 100% dump size

Dummy=FNDplot_dumpgraph(@Bitmap1,10,"WIN-DUMP",Flags,Dumpsize)

Printing via DPlot macro command

You may also print DPlot documents using the DPlot macro commands [FilePrint()] or [FilePrintMultiple()]. More information about sending macro commands to DPlot can be in chapter è "Executing DPlot macro commands".

[FilePrint()] or [FilePrint(0)]

Prints the document using the current default printer settings.

[FilePrint(1)]

Displays the Print dialog box, from which the user may change printer settings and print the currently active document and optionally print any or all of the other open documents on the same page.

[FilePrint("printer","filename")]

Prints the document using the default driver and port settings for the printer, where printer is the printer description exactly as it appears in the Control Panel Printers applet and/or the Print dialog in DPlot. Printer must be installed on this system. It is not restricted to physical printers; it may be a virtual printer like Acrobat Distiller or Adobe PDF, for example. If the optional filename parameter is included and print output is to a file (rather than an actual printer), then the output will be saved to this name. If filename is omitted and output is to a file then generally the plot title with the appropriate extension (e.g. .PDF, .EPS, .PRN) will be used and the file will be saved to the user's My Documents folder.

[FilePrintMultiple("printer",numdocs,doc1,doc2,...,docn,layout,space)]

Prints multiple documents to the same page.

printer

Printer description, exactly as it appears in the Control Panel Printers applet, e.g. "HP LaserJet 6P/6MP PostScript". If omitted, as in
FilePrintMultiple("",4,1,2,3,4,2,0.25,0.25)]
then the default printer will be used.

numdocs

Number of documents to print on the same page.

doc<x>

Document indices (1-32) for each of the numdocs documents to print. These indices are in the same order as the documents shown on the Window menu.

layout

Arrangement of documents on the page. 0=vertical, 1=horizontal, n (n>2)=n columns.

space

Minimum space between graphs on the printed page, in inches.

The entire page minus margins is divided into equal areas with space inches between each area for each document (the area on the page devoted to each document will be equal, regardless of Extents/Intervals /Size settings).

You can leave blank areas on the printed page by specifying a non-existant document index. For example:

FilePrintMultiple("",4,1,100,3,4,2,0.25,0.25)]

If there is no document with index=100 (and there never will be since the maximum number of open documents is 32) then this command will print document 1 in the upper left corner, 3 in the lower left corner, 4 in the lower right corner, and the upper right corner will be blank.