+1 800 256 3608 (toll-free in North America) or +49 7531 90 60 10| service@combit.com

Report parameter (list) via code


(Nordin Slimati) #1

Hi,

What would be the best practice to set a Report Parameter via code?
It is a parameter with multiple values.

Right now single value parameters are set by the variables object (AddFromObject)
And the report parameters are hidden from the user in the report previewcontrol.

Regards,
Nordin


(combit Support - Erdal Alacali) #2

Dear Nordin,
thank you for your note.

Following you will find a code snippet for opening a project file via the DOM API and for accessing the ReportParameters collection:

[code]
ProjectList proj = new ProjectList (LL);
//If you want to change it during printing, you must use Proj. GetFromParent () and not Proj.Open(…),
the GetFromParent method can only be accessed in the DefinePrintOptions Event.

proj.Open (“test.lst”, LlDomFileMode.OpenOrCreate);
ReportParameter par = proj.ReportParameters [0];[/code]

If you have any further questions, please do not hesitate to contact us.

Kind Regards

Erdal Alacali
Technical support
combit GmbH