Duplex Options via code
Hello all,
how can i set the Duplex Options via Code like the Printer or the pages ?
I read the manuals and in the Internet. Nowhere i can find this Option or help about that.
Thanks for answer.
how can i set the Duplex Options via Code like the Printer or the pages ?
I read the manuals and in the Internet. Nowhere i can find this Option or help about that.
Thanks for answer.
Comments
as i stated before duplex is a property of the design page, when set the page(s) output by the engine will be printed using duplex mode.
typical
var
Page1: TfrxReportPage;
begin
frxreport1.loadfromfile('path&filename.fr3');
Page1 := frxReport1.Pages[1] as TfrxReportPage;
//set any design page props here
page1.duplex :=dmsimplex; //or dmnone or dmvertical or dmhorizontal
I read this but i am thinking it??s not the same with the option in the Print Options.
Then it??s clear. [img]style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> but how can i find out which Option of duplex is in the PrintOptions Dialog is setting ? Because we have various Printers with Duplex and none. The Duplex Option hardcoded in the Report is not the way. Before the Print i must set the Option or not with the Printer Model.[/img]
you can add frxprinters.pas to your uses clause