To use these functions you must add DPIncludes.dba to your project.
FUNCTION Get_Printer_Name(N as integer)
The get printer name function returns the name of the printer specified by the index n. Use the
GET PRINTER COUNT function to discover the number of printers. Note calling this function calls
SET PRINTER INDEX function which will terminate any ongoing print jobs.
The function returns the name of the printer indexed by N if successful otherwise it returns an error string.