Scalabium Software

SMReport Autogenerated
Knowledge for your independence'.
Home Delphi and C++Builder tips


#26: How can I detect a printer capabilities to print a graphics?

If you want to detect if your printer is capable of printing graphics, large bitmaps, and DIBs, then you can check it by the next procedure:


begin
if
(GetDeviceCaps(Printer.Canvas.Handle, RASTERCAPS) and RC_NONE) =
RC_NONE then
<graphic is not capable>;

if (GetDeviceCaps(Printer.Canvas.Handle, RASTERCAPS) and RC_STRETCHDIB) =
RC_STRETCHDIB then
<printer supports the StretchDIB>
else
<Windows will simulate the StretchDIB>;
end;


Published: September 30, 1999

See also
 
SMReport
Word Web-stream
Fast Document Viewer
Metafile Convert
Paradox to MS Access converter
Viewer for TNEF-files (winmail.dat)
DBISAM Viewer
ABA Spreadsheet Convert
Clarion Viewer
MAPIMail
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2024, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMReport Autogenerated