ExecutePrintDef with Parameter - No prompt if already filled
i have a problem with a customize rule.
We try to open a print definition via customize rule (new menu) to save a layout as pdf on a file path. The code works, but we have to set all parameters on mode "No prompt if already filled".
Thats a problem for "Checkbox"-parameter, because this layout/report should be open in two ways:
1. Open directly via Menu.
Therefore the report needs the checkbox-parameter as mode "Standard", because if you set this to "No prompt" the user can't change the value
2. Open via customize rule
Therefore the report needs the checkbox-parameter as mode "No prompt", because else you have to set the value each time you open the layout. We already set the parameter in our customize rule (param4):
LayoutOpener.ExecutePrintDef(layout, true, LayoutOpener.OpenLayoutModes.PDF, param1, results[i].ToString(), param2, dateFrom.Value, param3, dateTo.Value, param4, "1", param5, month.ToString(), param6, year.ToString());
Is it possible to hand over the checkbox-parameter to the layout and start this layout without input mask?
I'm not sure if the problem is clear enough.