• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

printing problem

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
nuible
Asked:
nuible
1 Solution
 
rspahitzCommented:
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
 
prakashbitraCommented:
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
 
rspahitzCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
kodiakbearCommented:
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
 
rspahitzCommented:
Recommendation: first rspahitz comment

The next comment essentially duplicates this information.
0
 
DanRollinsCommented:
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
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now