Solved

VB4-How to determine if printer is dot matrix or laser?

Posted on 1998-03-19
6
404 Views
Last Modified: 2010-05-18
Using VB4, how do I determine if an attached printer is a dot matrix or inkjet/laser. I don't want to use DeviceName or DriverName properties since I would have to make a table of all possibilities.
0
Comment
Question by:karldery
6 Comments
 
LVL 1

Expert Comment

by:sgroner
ID: 1459456
You could check the printer properties, and check the the resolution, I am not sure that there is a DOT Matrix printer that supports 150 DPI, I think all Dot Matrix Printers are much lower.  If this is the case then anything below 150 would be a dot matrix and anything above would be Laser or InkJet.  I realize this could be kinda hokey, but I dont know of another way.  If this answer will work let me know.
0
 

Expert Comment

by:chazmanian
ID: 1459457
What are you trying to accomplish by knowing this?
0
 
LVL 7

Expert Comment

by:kamall
ID: 1459458
sgroner,
Are you sure???
My dot-matrix printer has 360x360 DPI !!!
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:karldery
ID: 1459459
To sgroner: I will do a test soon when my work load is lighter. Thanks in advance.

To chazmanian: In knowing this I will be able to make an in-house software package, for the company I'm working for, be able to be versatile in the printing of reports for who ever where ever on what ever.
0
 
LVL 1

Expert Comment

by:sgroner
ID: 1459460
My comment sucks, not sure why I even put it in there.  That idea will not work, don't waste your time.  Let me look around and see if I can come up with something.


0
 

Accepted Solution

by:
chazmanian earned 30 total points
ID: 1459461
If you are just printing reports, why do you care whether it is a dot matrix printer or a laser printer? I am still curious.

On thing I've noticed is that laser printers have a non-printable area. If you notice that in word processors, you cannot have a margin of zero on laser printers, with dot matrix printers you can.
Try printing to an area that laser printers cannot accept and then trap for an error. You might want to look at the printer.pset method.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add text to end of existing text in file 16 69
A macro to Count the number of rows across all worksheets 3 80
Hide vba in gp 7 82
clicking a shape in a frame array vb6 3 40
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

911 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

22 Experts available now in Live!

Get 1:1 Help Now