Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Detecting if a printer can do duplex

edited June 2003 in General
Hi,

I need to allow a user to use duplex mode but I did not want to
bother all user, only the ones who have printers capable of
duplex mode. I was able to implement it easily, but it is
conspicuous by its absences from RBuilder. Did you find
detecting the duplex. I remember that was the case on
detecting if colors are supported. Or, did you not see
a need. It seems to work correctly on a Xerox DC555.

Thanks,
Joseph Gordon


with ppRepor1t.Printer.PrinterInfo do
if ppPrintr.DeviceCapabilities(Device, Port, DC_DUPLEX, nil, nil)=1
then
begin
DuplexCB.Visible:=true;
DuplexLabel.Visible:=true;
end
else
begin
DuplexCB.Visible:=false;
DuplexLabel.Visible:=false;
end;

Comments

This discussion has been closed.