wp782fa982.png
wp135453fd.png
wpd9b37d5a.png

Set Printer Index < Integer >

Sets the current printer to the one specified by integer. To discover the number of printers available use the

Get Printer Count function. The first printer index is numbered 0 and the last printer index = Get Printer Count () -1. Note that the number of printers on a system can change at any time so you should not rely on the index of a printer remaining constant. If you change the printers index once a print job has been started then the current print job is discarded.

Example

 

PC = GET PRINTER COUNT()

If  PC = 0 then print "There are no printers set up on this computer" : End

for i = 1 to pc

SET PRINTER INDEX I - 1

print i ,Get Printer Name()

next i