I've tried using the following code that you suggested to get the printer port...
- Code: Select all Expand view RUN
cPort := StrToken( GetProfString( "Devices", cModel, "" ), 2, "," )
But I get a different port identifier with this - Ne04: - than I do with Badera Thiam's function WinGetPrnP(cNamPrinter) which returns - USB002 - for the same printer. (Badera's function is in this forum under the topic "Print System Functions".) USB002 seems correct and Ne04: seems not correct.
Any idea about this discrepancy?
- Roger