Solved

printing problem

Posted on 2002-07-23
7
161 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

820 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