Solved

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

Posted on 1998-03-19
6
410 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

737 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