PrintDialog and duplex mode

edited February 2014 in FastReport 4.0
I try to print in duplex mode, by my printer as default set Duplex = None
If I set the parameter to True, I get two-page prints. But I want to print in duplex mode directly from my code.

I try frxReport.PrintOptions.Duplex:=dmVertical/ dmHorizontal/ dmSimplex
and the loop:
if (uppercase(frxReport1.Pages[n].ClassName) = 'TFRXREPORTPAGE') then
        begin
              TfrxReportPage(frxReport1.Pages[n]).duplex := dmVertical; 
        end;

but always I get one-page prints.

Anyone can help me?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 6:48PM
    after you call loadfromfile get the design page and set its duplex property
  • edited 6:48PM
    Please show me a little example how to do that.
    I showed in the first post so I tried that.

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.