Page 1 of 1

Choosing a Printer

Posted: Sun Mar 16, 2008 7:56 am
by xProgrammer
Hi Antonio

I am happily generating forms as postscript files and can print them and delete them via lpr. I would like to specify the printer that they are sent to. lpr supports this via the -P option. I wanted to get a list of printers bur GetPrinters() didn't seem to exist. I got a linker error. GetDefaultPrinter() didn't work either. I had a little go at

Code: Select all

PRINTER oPrn
oPrn:Choose()
and got the dialog, but that doesn't seem to return a printer it wants to print a file you have already created using oPrn:Say (which isn't what I want to do).

Is there a way of getting a list of printer names?
Is GetPrinters() not in xHarbour (Linux version) or was it removed as part of FiveLinux build?
Or is there possibly a library missing from my build file?

Thanks
Doug
(xProgrammer)