Lately I’ve been using doodle reporting to generate excel and pdf reports. I was doing that with a button link because the report is not dynamic.
But now I have a requirement where the parameters are dynamic, where I have a form of parameters and the users will fill these form and hit submit. The form will submit to another action and that action should generate a pdf report.
When I tried this code:
return new ReportResult(report, new PdfReportWriter());
It just generate the report in the page and I’m unable to download. Any idea how?
I’ve already included all the required dlls and I’m able to generate when I’m using an actionLink.
To solve the problem specify the content type and filename: