Solved

printing problem

Posted on 2002-07-23
7
160 Views
Last Modified: 2012-05-04
HI,

HOW CAN I DETECT PRINTER ON MY NETWORK USING VISUAL BASIC MY PROGRAM SHOULD GIVE THE LIST OF ONLY THOSE PRINTER WHICH ARE CONNECTED TO THE M/C WHICH ARE "ON"

THANKS

0
Comment
Question by:nuible
7 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 50 total points
ID: 7174898
I'm not exactly sure of the question, but you can use the VB Printers collection to locate all printers that the current Windows session knows about.
0
 
LVL 1

Expert Comment

by:prakashbitra
ID: 7178235
very simple
get the all printers using printers collection
i think u not need code for getting printers into the collection.

then get each and every devicename and using instr find the printer devicename which starts with string '//'. that's it these names are currently connected network printers.
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7178733
prakashbitra, please observe the EE guidelines found at the bottom of each submit page:

"Answers
An answer is a specific solution to a question and should be submitted if it will solve the questioner's problem and doesn't duplicate a previous comment."
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 1

Expert Comment

by:kodiakbear
ID: 7522824
Dear prakashbitra
I've rejected your proposed answer as Experts Exchange holds an experiment to work without the answer button.

See: <http://www.experts-exchange.com/jsp/communityNews.jsp>
Paragraph: Site Update for Wednesday, November 06, 2002

By this rejection the Asker will be notified by mail and hopefully he will take his responsibility to finalize the question or post an additional comment.
The Asker sees a button beside every post which says "Accept This Comment As Answer" (including rejected answers) -- so if he/she thinks yours is the best, you'll be awarded the points and the grade.

EXPERTS: I will return in seven days to close this question.
Please leave your thoughts and recommendations here

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Thanks !

kodiakbear
Experts Exchange Moderator
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 7525989
Recommendation: first rspahitz comment

The next comment essentially duplicates this information.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8040456
Hi nuible,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept rspahitz's comment(s) as an answer.

nuible, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8095697
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

777 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