FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem getting printer port Enrico's way
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
Problem getting printer port Enrico's way
Posted: Mon Oct 13, 2008 10:19 PM
Enrico,

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

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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problem getting printer port Enrico's way
Posted: Tue Oct 14, 2008 07:25 AM

Probably they are synonims.

EMG

Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
Problem getting printer port Enrico's way
Posted: Tue Oct 14, 2008 01: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

Continue the discussion