Set Spool File Flags 0x2222 17 02

Checks the status of a shared printer.

NetWare Server:2.x, 3.x, 4.x, 5.x

Request Format

Offset

Content

Type

Request header

6

FunctionCode (17)

byte

7

SubFunctionStrucLen (21)

word (Hi-Lo)

9

SubFunctionCode (2)

byte

10

PrintFlags

byte

11

TabSize

byte

12

TargetPrinter

byte

13

Copies

byte

14

FormType

byte

15

Reserved

byte

16

BannerName

byte[14]

Parameters

PrintFlags

(Request) Specifies the following bits:

  • 3 Suppress form feeds
  • 5 Delete the spool file after printing
  • 6 Expand the tabs in the file
  • 7 Print the banner page
TabSize

(Request) Specifies tab stops should be set in every column that is a multiple of the value specified.

TargetPrinter

(Request) Specifies which of the print server's printers the data file should be queued to (printer numbers start at zero).

Copies

(Request) Specifies the number of times the spool file should be sent to the printer.

FormType

(Request) Specifies the form number the client wants the job to be printed on.

BannerName

(Request) Specifies the filename the client wants to appear on the print banner page (NULL-padded if fewer than 14 characters).

Return Values

Decimal

Hex

Description

0

0x00

Successful

150

0x96

Server Out Of Memory

210

0xD2

No Queue Server

211

0xD3

No Queue Rights

232

0xE8

Write To Group

234

0xEA

No Such Member

235

0xEB

Property Not Set Property

236

0xEC

No Such Set

252

0xFC

No Such Object

254

0xFE

Directory Locked

255

0xFF

Bad Printer

Remarks

When a print server adds a job to the print queue, it records the client's current print parameters and later uses them to control printing the job.

TabSize has meaning only if bit 6 is set in PrintFlags. If bit 6 is set, the print server assumes that the file being printed is a standard ASCII file. Any tabs that are encountered while printing the file will be replaced by enough spaces to move the printer over to the next tab stop column. If tabs are being expended by the print server, the print server will interpret any Control Z character (0x1A) in the print file as an end-of-file mark and will stop printing the file.

If the tab expansion bit (bit 6) is cleared in PrintFlags, the printer makes no assumptions about the nature of the file it is printing or the nature of the device the file is being sent to. If bit 6 is cleared, the print server can drive many different types of devices (printer, plotters, etc.), but the burden of appropriately controlling these devices rests with the client using the device.

After each job is added to the queue, the print server resets the print parameters to the default values as follows:

  • PrintFlags 0 (no banner, no tabs, no file delete)

  • TabSize 8

  • TargetPrinter 0

  • Copies 1

  • FormType 0

  • BannerName 0 (no banner name)

See Also

Close Spool File 0x2222 17 01, Write To Spool File 0x2222 17 00, Get Printer's Queue 0x2222 17 10