Yes. Here are the two sets of commands embedded in a report that needs to be printed duplex.

[On Before Generate]
SET VAR vInvoicePrinter TEXT = NULL
  SELECT InvoicePrinter INTO vInvoicePrinter INDICATOR i1 FROM FormTable +
    WHERE ColumnZZ = 1
  PRNSETUP .vInvoicePrinter
  PRNSETUP DUPLEX HORIZONTAL
  RETURN

[On After Generate]
SET VAR vInvoicePrinter TEXT = NULL
  SELECT InvoicePrinter INTO vInvoicePrinter INDICATOR i1 FROM FormTable +
    WHERE ColumnZZ = 1
  PRNSETUP .vInvoicePrinter
  PRNSETUP DUPLEX SIMPLEX
  RETURN

Albert


Reply via email to