在帖子上生成涂鸦报告
最近我一直在使用 doodle reporting 来生成 Excel 和 pdf 报告。我使用按钮链接来执行此操作,因为报告不是动态的。
但现在我有一个要求,参数是动态的,我有一个参数表单,用户将填写这些表单并点击提交。该表单将提交给另一个操作,该操作应生成 pdf 报告。
当我尝试此代码时:
return new ReportResult(report, new PdfReportWriter());
它只是在页面中生成报告,但我无法下载。知道怎么做吗?
我已经包含了所有必需的 dll,并且可以在使用 actionLink 时生成。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要解决该问题,请指定内容类型和文件名:
To solve the problem specify the content type and filename: