Hello Viktor

<<<
First of turn _SET_DEFEXTENSIONS to .F.,
after that in Harbour you'll need to convert
the Windows printer name to a port, share
name, or filename in order to print to it using
SET PRINTER TO.
>>>

I tried both.

Printername =  "Kyocera FS-1000 (KPDL-2)"
Portname    =  "IP_10.0.40.30"
Attribute     =  LOCAL

set( _SET_DEFEXTENSIONS, .f. )

// creates disk file Kyocera FS-1000 (KPDL-2)"
// before it was Kyocera FS-1000 (KPDL-2).prn" 
SET PRINTER TO ( Printername ) 

// creates disk file 'IP_10.0.40.30' 
// before it was 'IP_10.0.40.30.prn'
SET PRINTER TO ( Portname ) 

<<<
Harbour core doesn't support any Windows
printers natively, so you'll need to use
hbwin.lib for some name to port conversion
and getting Windows printer name list.
>>>

I fetched above info with GetPrinters()* functions only.

<<<
IOW, in Harbour 'SET PRINTER TO' always need
to point to a filename, or any name that
can be opened using FOpen().
>>>

Does it implies that Harbour either prints to a "file" ( disk file )
or any standard port like 'LPT1:~LPT4:   COM1:~COM4' ?

It will be heartening to see 
SET PRINTER TO ( cPrinterNameOrPort ) based on the OS in use.

Any ideas how can I direct SET PRINTER TO ... to behave as in xHarbour
as the basic code is implemented in set.c itself.

Regards
Pritpal Bedi

-- 
View this message in context: 
http://www.nabble.com/SET-PRINTER-TO-%28-cPrinter-%29---Bug-tp20431996p20447188.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to