printing to a network drive

Posted on 2006-05-18
Last Modified: 2010-05-01
Hi Experts.

I'm trying to print to a nextworked printer instead of using the parallel port.

I currently use the code: -

Open "LPT1" For Output As #1 for local printing

Is it a matter of changing this code to point to the ip address or do I need to place different code.

Many Thanks


Question by:ljhodgett
    1 Comment

    Accepted Solution

    A printer that is shared will have a share name. Try using "\\servername\sharename" instead of LPT1, substituting the real server name and share name. If you want to see available printers, at a command prompt type:

    net view \\servername

    You can also use the IP address for the server name.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now