Setting Report.PrintOptions.Printmode in code
Hi
Have searched online for this information but cannot find it.
There are plenty of examples for : Report.PrintOptions.Copies := 2 etc.
But, none for printmode.
For example if I try : frxReport1.PrintOptions.printmode := 2; ( want to set pmJoin)
I get error : Incompatible types : "TfrxPrintmode" and integer.
How can I set this value?
Regards
Ravi K
Have searched online for this information but cannot find it.
There are plenty of examples for : Report.PrintOptions.Copies := 2 etc.
But, none for printmode.
For example if I try : frxReport1.PrintOptions.printmode := 2; ( want to set pmJoin)
I get error : Incompatible types : "TfrxPrintmode" and integer.
How can I set this value?
Regards
Ravi K
Comments
Thanks for the info, but unfortunately it does not work in this case.
This is the code that works for copies. frxpreport1 is in unit Reportform.
ReportForm.frxReport1.PrintOptions.Copies := 2;
Tried both.
TfrxReport(frxReport).Report.PrintOptions.printmode := pmJoin; // - frxreport error
TfrxReport(ReportForm.frxReport1).Report.PrintOptions.printmode := pmJoin; // - ReportForm.frxReport1 no error.
The other issue is pmJoin is not defined.
Hope you can help.
Thanks.
Regards
Ravi K.