Problem getting printer port Enrico's way

Problem getting printer port Enrico's way

Postby Roger Seiler » Mon Oct 13, 2008 10:19 pm

Enrico,

I've tried using the following code that you suggested to get the printer port...

Code: Select all  Expand view
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
User avatar
Roger Seiler
 
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA


Postby Roger Seiler » Tue Oct 14, 2008 1:42 pm

Apparently yes.

I Googled "USB002 NE04:" and got an article about this, but unfortunately it is written in Chinese or Japanese, and I couldn't get it translated. One other article, in English, requires purchase of a subscription to see the article. So I'll keep looking for the explanation elsewhere, and when I find it, I'll post it here.

- Roger
User avatar
Roger Seiler
 
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 77 guests