Re: columns increase or decrease at runtime
Data Dynamics Reports Support
columns increase or decrease at runtime
08-18-2010, 10:41 AM
Hi,
my report takes parameters as input from the user and then displays those parameters information in the report. the problems that im facing are:
1) i want to prompt the user for 15 inputs but even if he doesnt chooses the 15 paramters, and chooses only 2 for example, i still want the report to be displayed.
2) similarly if the user enters 2 parameters i want the report to display only 2 columns with those 2 parameters information respectively. if the user enters 15 parameters then i want the report to display 15 columns and so on
3) the information for each parameter differs in length and i would like the textbox to be sized according to the length of the data and i dont want the text going to the next line in the textbox.
I would really appreciate it if someone could help. Thanks
Re: columns increase or decrease at runtime
08-19-2010, 8:21 AM
could someone please help me. thanks
Re: columns increase or decrease at runtime
08-19-2010, 2:35 PM
Its possible to do this within the report engine, however i think it is far easier to do this in your own code.
You can create a UI which prompts for the 15 parameters, then based on that selection programmatically create a new report with the appropriate columns added.
You can see a similar example of this in the Samples\API\ReportWizard sample. In this example we are creating a table based on the database columns being added to the report.
I hope this helps,
James