FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveLinux / FiveDroid (Android) Choosing a Printer
Posts: 464
Joined: Tue May 16, 2006 07:47 AM
Choosing a Printer
Posted: Sun Mar 16, 2008 07:56 AM
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

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)

Continue the discussion