Solved

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

Posted on 1998-03-19
6
405 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:Steve Groner
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

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:Steve Groner
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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 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