Solved

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

Posted on 1998-03-19
6
402 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
Comment Utility
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
Comment Utility
What are you trying to accomplish by knowing this?
0
 
LVL 7

Expert Comment

by:kamall
Comment Utility
sgroner,
Are you sure???
My dot-matrix printer has 360x360 DPI !!!
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:karldery
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

762 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

10 Experts available now in Live!

Get 1:1 Help Now