Forum: Object-Pascal / Delphi-Language
Delphi
by SirThornberry,
22. Nov 2009
Was willst du uns damit sagen? Es wäre schön wenn du auch ein paar Worte darüber verlieren würdest warum du dich selbst zitierst und was du damit erreichen willst.
Forum: Object-Pascal / Delphi-Language
Delphi
by SirThornberry,
8. Nov 2009
PrinterInfo.Attributes:=PrinterInfo.Attributes and PRINTER_ATTRIBUTE_WORK_OFFLINE
The result of this is allways PRINTER_ATTRIBUTE_WORK_OFFLINE (or 0 if PRINTER_ATTRIBUTE_WORK_OFFLINE was not set before).
to remove the PRINTER_ATTRIBUTE_WORK_OFFLINE bits the expression has to be:
PrinterInfo.Attributes:=PrinterInfo.Attributes and not(PRINTER_ATTRIBUTE_WORK_OFFLINE)