Printer and Print Job Related Methods

A program or Workplace Shell object would call the following methods to get information about a printer or print job object. These methods are normally not overridden.

┌──────────────────────────────┬──────────────────────────────┐
│Method Name                   │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryComputerName           │Returns the name of the       │
│                              │computer on which the printer │
│                              │object exists.                │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryJobFile                │Returns the name of the spool │
│                              │file for the print job object.│
├──────────────────────────────┼──────────────────────────────┤
│wpQueryJobId                  │Returns the job ID for the    │
│                              │print job object.             │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryJobType                │Returns the data type for the │
│                              │print job object.             │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryLocalAlias             │Returns the name of the local │
│                              │print queue for a remote      │
│                              │printer object.               │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryNetworkId              │Returns the fully qualified   │
│                              │network ID of the remote      │
│                              │printer queue for a remote    │
│                              │printer object.               │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryPrinterName            │Returns the name of the print │
│                              │queue for this printer object.│
│                              │For a remote printer object,  │
│                              │this is the computer's printer│
│                              │queue name on which the       │
│                              │printer object exists. The    │
│                              │name of the local print queue │
│                              │can be obtained by calling    │
│                              │wpQueryLocalAlias.            │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryPrintObject            │Returns a pointer to the      │
│                              │printer object to which the   │
│                              │print job is associated with. │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryQueueOptions           │Returns the printer object's  │
│                              │queue options.                │
├──────────────────────────────┼──────────────────────────────┤
│wpQueryRemoteOptions          │Returns the printer object's  │
│                              │remote options.               │
└──────────────────────────────┴──────────────────────────────┘

A program or Workplace Shell object would call the following methods to set information about a printer or print job object. These methods are normally not overridden.

┌──────────────────────────────┬──────────────────────────────┐
│Method Name                   │Description                   │
├──────────────────────────────┼──────────────────────────────┤
│wpSetComputerName             │Sets the name of the computer │
│                              │on which the printer object   │
│                              │resides.                      │
├──────────────────────────────┼──────────────────────────────┤
│wpSetDefaultPrinter           │Sets the printer object as the│
│                              │default printer.              │
├──────────────────────────────┼──────────────────────────────┤
│wpSetJobProperties            │Sets the print job properties.│
├──────────────────────────────┼──────────────────────────────┤
│wpSetPrinterName              │Sets the name of the printer  │
│                              │object.                       │
├──────────────────────────────┼──────────────────────────────┤
│wpSetQueueOptions             │Sets the printer object's     │
│                              │queue options.                │
├──────────────────────────────┼──────────────────────────────┤
│wpSetRemoteOptions            │Sets the printer object's     │
│                              │remote options.               │
└──────────────────────────────┴──────────────────────────────┘


[Back: Power Related Methods]
[Next: Program Reference and Program File Related Methods]