michaelg1971
asked on
Printer Type: LaserJet or InkJet
Hi, guys.
Is there any Windows API function which tells you that the printer is laserjet or inkjet ? Any other way to find out ?
I need to find out, because I'm using GDI objects (VC++ 6.0) to draw graphs and the width pen is displayed differently on different printers (e.g. on laserjet printers work fine, but on inkjet printers the width pen becomes too big !).
Any suggestion would be great !
Michael
Is there any Windows API function which tells you that the printer is laserjet or inkjet ? Any other way to find out ?
I need to find out, because I'm using GDI objects (VC++ 6.0) to draw graphs and the width pen is displayed differently on different printers (e.g. on laserjet printers work fine, but on inkjet printers the width pen becomes too big !).
Any suggestion would be great !
Michael
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use 'GetDeviceCaps()' to retrieve the horizontal and vertical resolution of both printers. I assume your problem is due to an anisotropic resolution (e.g. 600x300 instead of 600x600) of the printer.
ASKER
Thank's jkr, but you're wrong. The resolution is perfectly fine, there is no anisotropic resolution.
>>but you're wrong
So, what resolution does the inkjet actually have?
So, what resolution does the inkjet actually have?
ASKER
Canon BJC-5100 Buble Jet Printer
Default: 360X360 dpi
Maximum: 720X720 dpi
Default: 360X360 dpi
Maximum: 720X720 dpi
int GetDeviceCaps( HDC hdc,
// handle to DC
int nIndex // index of capability
);
try following as nIndex
LOGPIXELSX
ASPECTX
SCALINGFACTORX
COLORMGMTCAPS
and test whether it gives any clue
// handle to DC
int nIndex // index of capability
);
try following as nIndex
LOGPIXELSX
ASPECTX
SCALINGFACTORX
COLORMGMTCAPS
and test whether it gives any clue
ASKER
I' ll try it and let you know.
Thank's vijay_visana.
Thank's vijay_visana.
ASKER
I'll give to anybody all the points, just to show me exactly this and that. I looked at the DeviceCaps and DeviceCapabilities, but there is no indication that points to distinguish the printer.
Michael