Results 1 to 9 of 9
  1. #1
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    'Ne#' USB Printer Port Settings (XP Home)

    I posted this over at the Win2000 forum and am not getting any response. Since this issue is handled the same in Windows XP I thought I'd post here as well and see if anyone knows about these "Ne01 etc." port settings.

    Each printer on a USB port is assigned an "Ne#" addresss, such as "Ne01", "Ne02" etc. This does not seem to relate directly to the USB port number, such as "USB001", "USB002" etc. These "Ne#'s" can be seen if you created an Excel macro to print to a USB printer and then edit the macro.

    My problem is that if I add another item to a USB port all these "Ne#"s" change. I have numerous Excel macros that automatically print to my various printers (4 are on the system) and all these macros have to be edited if the "Ne#'s" change....and they do if I add another USB device to the system.

    Does anyone know of a way to adjust the "Ne#'s" ...... hopefully similar to changing a printer port assignment under CONTROL PANEL, PRINTERS. If so, then I could edit the "Ne#'s" instead of all my macros each time this occurs.

    Thank you,
    BH DAvis

  2. #2
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: 'Ne#' USB Printer Port Settings (XP Home)

    I looked on TechNet and there's only one, irrelevant, reference to NE01 and one, ditto, to USB001. Even Google Groups (microsoft.public.win2000.printing) seems only to have the same question as you:

    Can someone tell me how the numbers 'NE01:', 'NE02:' etc.
    are allocated to printers? Is it to do with the sequence
    in which they were installed? That is, the first
    installed printer is NE01, second is NE02 etc. or is it
    something far more interesting?

    Many thanks
    Debbie

    (You're not called "Debbie", are you?!)

    So unless someone else has worked in this area OR there's a website which answers the question, I don't think you'll get very far... <img src=/S/sad.gif border=0 alt=sad width=15 height=15>
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  3. #3
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 'Ne#' USB Printer Port Settings (XP Home)

    Are you looking for a solution specifically for use within Excel?

    (I'll lock your W2K post to stop diverging threads.)

  4. #4
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: 'Ne#' USB Printer Port Settings (XP Home)

    Nope, not Debbie...........!!!!

    Thanks for doing that search....I've done it myself.

    BH Davis

  5. #5
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: 'Ne#' USB Printer Port Settings (XP Home)

    Yes, the solution would be to use specifically in Excel. A general unerstanding of the Ne# system would be nice though.

    Thanks,
    BH Davis

  6. #6
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 'Ne#' USB Printer Port Settings (XP Home)

    I can't help you with the 'general understanding' bit <img src=/S/smile.gif border=0 alt=smile width=15 height=15> but I think this thread may be better off in the Excel forum now.

    A quick search of my own archives throws up this example code from <!profile=pieterse>pieterse<!/profile> on 27-Jan-03 - it may give you some pointers:<pre>Option Explicit

    Sub GetPrinterList()
    Dim sPrinters() As String
    Dim lPrinterCount As Long
    Dim lCount As Long
    Dim sCurPrinter As String
    Dim sTemp As String
    Dim sMsg As String
    ReDim sPrinters(1)
    lPrinterCount = 0
    sCurPrinter = Application.ActivePrinter
    Do
    sPrinters(lPrinterCount) = sTemp
    lPrinterCount = lPrinterCount + 1
    SendKeys "^p^{home}{down " & lPrinterCount - 1 & "}~"
    Application.Dialogs(xlDialogPrinterSetup).Show
    sTemp = Application.ActivePrinter
    ReDim Preserve sPrinters(lPrinterCount)
    Loop Until sTemp = sPrinters(lPrinterCount - 1)
    For lCount = 1 To lPrinterCount
    sMsg = sMsg & sPrinters(lCount) & vbNewLine
    Next
    MsgBox sMsg
    Application.ActivePrinter = sCurPrinter
    End Sub</pre>

    I'm guessing you may be able to find a method of predetermining which printer is which by the name you use for it - e.g. "HP DeskJet 1220C Printer on Ne01:"

  7. #7
    Uranium Lounger
    Join Date
    Mar 2001
    Location
    New Jersey
    Posts
    6,684
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Re: 'Ne#' USB Printer Port Settings (XP Home)

    I found this.......
    "The ulpt driver provides support for USB printers that follow the printer bi- or uni-directional protocol. The bits in the minor number select various features of the driver." here and a general explanation of the USB port assignment process here.

    Hope this helps or provides some direction. I'm hopelessly out of my depth in this area !!
    <IMG SRC=http://www.wopr.com/w3tuserpics/DocWatson_sig.gif>

  8. #8
    3 Star Lounger
    Join Date
    Jan 2002
    Location
    CT
    Posts
    361
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: 'Ne#' USB Printer Port Settings (XP Home)

    Thanks to all for trying to help solve this riddle. Unfortunately, I'm still at a total loss on understanding the Ne# settings.

    Thanks again,
    BH Davis

  9. #9
    5 Star Lounger
    Join Date
    Oct 2001
    Location
    San Bernardino, California, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 'Ne#' USB Printer Port Settings (XP Home)

    I, too, am out of my element but want to offer this idea. I suspect that there may be either an OS, CMOS, or H/W setting(s) where you can choose between static or dynamic ne#'s. Obviously, the OS is able to distinguish between printers regardless of the NE# so this ability must be available to the developer/user. Then, again, I could be (am probably) wrong.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •