I’d like to provide a reporting solution to my client that uses a number of Crystal Reports with parameters. Currently their solution uses the default mechanism of prompting the user for each parameter – this is tedious, and does not provide validation (like correct format of date entry, inter alia).
I’d like to rather present a page that accepts a report, and evaluates the parameters required by the report, and then dynamically builds a page that contains fields for each parameter, for the user to enter and then click a Run button to programmatically pass all the entered values to the report parameters.
I’m not finding anything by way of Google Search. Has this been done? I wouldn’t like to re-invent the wheel on this one. Any guidance would be appreciated.
Turns out with asp.Net MVC this was actually quite trivial…
Controller:
Razor View:
The submit button would then Post to a PrintCustomReport method on the controller, which returns a PdfReportResult, as described by @RenanMarks here