Detecting if a printer can do duplex
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;
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;
This discussion has been closed.
Comments
Thanks for the information!
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com