PLOTWORKS, Inc.]    PLOT88
 


 HOME

 TECHNICAL
 SPECIFICATIONS

 WHAT'S NEW!

 SELECTING 
 LIBRARY OR 
 SOURCE

 PURCHASING 
 THE PLOT88 
 LIBRARY

 PURCHASING
 THE PLOT88 
 SOURCE

  CONTACT
 PLOTWORKS  Inc.
 

PLOT88 Printer  Output under MicroSoft Windows 95, 98, 2000, NT, XP, or Vista

PLOT88 uses the system print spooler for ioport= 0,1,2 or 3 to output drawings in a spool data format of "RAW".
Since PLOT88 uses API32 calls to output the drawing, no assembler routines are included in the PLOT88 libraries.
 

Default printer and print spool job title:

The default printer for the system is used to output the drawing unless the printer  to use is passed to PLOT88 with the UsePrinter88 subroutine call. 
The default job title for the drawing is listed in the print spool queue as "PLOT88 Output" unless the JobTitle88 subroutine is called. 
One or more pages can be printed under the same job title.

Note:

Because PLOT88 drawings are sent to a print spooler, the following escape values are already set:
       CALL LJ0ESC(0)
   CALL EP0ESC(0)
No page is ejected before the first drawing is printed.

The following two subroutines are called after PLOTS or INTDRV

Subroutine UsePrinter88

Calling Sequence:

        Call UsePrinter88( printer_name)

Parameters:
        printer_name = character string of the name of the printer to use.
                              See "Printer Settings" for a list of printers.
                              Maximum 32 characters.
Example:

        CALL UsePrinter88("HP LaserJet 4")

Note:
        This routine must be used if no default printer is defined for the system
 

Subroutine JobTitle88

Calling Sequence:

        Call JobTitle88( title)

Parameters:

        title= character string of the name of the job in the output print spool queue. Maximum 32 characters.

Example:

        CALL JobTitle88("Program MIN4C Contour")

Note:

        All drawings defined between PLOTS and CALL PLOT(0.0,0.0,999) have the same job title.

Error Messages

The following PLOT88 error codes are reported from the result of a API32 call:
 

PLOT88
Err#  Routine Error Message           Recovery Method
80    IO008A  OpenPrinter error       Call UsePrinter88.
                                      Check spelling of printer name.

81    IO008A  StartDocPrinter error   Printer data format must 
                                      include "RAW" in list.

82    IO010A  WritePrinter error      Fix previous printer error.

83    IO011A  WritePrinter error      Fix previous printer error.

84    IO011A  WritePrinter error      Fix previous printer error.

85    IO009A  EndDocPrinter error     Fix previous printer error.

86    IO009A  ClosePrinter error      Fix previous printer error.

87    IO008A  EnumPrinters            Call UsePrinter88.
                                      Default printer cannot be
                                      determined.

88    IO008A  EnumPrinters error.     Call UsePrinter88.
                                      Default printer cannot be 
                                      determined.

89    IO008A  No default printer      Call UsePrinter88.
                                      Default printer cannot be 
                                      determined.

90    IO008A  Invalid printer.        Call UsePrinter88.
                                      Check spelling of printer 
                                      name.

91    IO009A  CloseHandle error.      Fix previous plotter error.

92    OPNCOM  CreateFile error        Check plotter ( on?, ready?
                                      etc)

93    OPNCOM  GetCommStat error       Check plotter, com port cable.

94    OPNCOM  SetCommStat             Fix previous plotter error.

95    OPNCOM  GetCommTimeouts         Fix previous plotter error.

96    OPNCOM  SetCommTimeouts         Fix previous plotter error.

97    BIOCM   WriteFile               Is plotter attached to cpu,
                                      is it ready?