[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


printing to a network drive

Posted on 2006-05-18
Medium Priority
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

andrewzim earned 1000 total points
ID: 16708903
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.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

872 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