in Page A4 duplex print is working, but fails on page:custom, how can I fix it ? thanks!

procedure TduplexTest_frm.Button1Click(Sender: TObject);

var A:TfrxReportPage;

idx:integer;

begin

 idx := printer.Printers.IndexOf(PrinterName);

 if idx = -1 then

 begin

  showmessage(PrinterName + ' can''t find printer');

  exit;

 end;

 rpt.PrintOptions.Printer := PrinterName;

 a := rpt.FindObject('page1') as  TfrxReportPage;

 // DuplexMode := dmVertical;

 a.Duplex := dmVertical;

 rpt.PrintOptions.Duplex := dmVertical;

 ds.RangeEnd := reCount;

 ds.RangeEndCount := length(buff);

 if rpt.PrepareReport then

  rpt.Print

end;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.