Telerik Reports:仅在文件格式下拉列表中显示特定文件格式
我正在创建一个Web应用程序,其中我可以在其中使用Telerik报告,并且用户可以下载这些报告,我的应用程序是在ASP.NET MVC上使用JQuery在前端创建的,
以下是我的代码,我的代码
@{
var report = new UriReportSource() { Uri = Model.ReportFileName };
foreach (var par in Model.Parameters)
{
report.Parameters.Add(new Telerik.Reporting.Parameter(par.Key, par.Value));
}
}
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl(Url.Content("~/api/reports"))
.ReportSource(report)
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
)
i.sstatic.net/9g6vb.png 在上述下拉中显示PDF和Excel格式
I am creating a web application in which I have Telerik reporting and user can download those reports, My application is created on asp.net mvc using jQuery for front end,
below is my code for the same
@{
var report = new UriReportSource() { Uri = Model.ReportFileName };
foreach (var par in Model.Parameters)
{
report.Parameters.Add(new Telerik.Reporting.Parameter(par.Key, par.Value));
}
}
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl(Url.Content("~/api/reports"))
.ReportSource(report)
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
)
I Just want to show pdf and excel format in the above dropdown
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在报告和/或 应用程序级别。
在报告级别:
参考:
https://docs.telerik.com/reporting/p-telerik-报告-报告-运行时设置
https://docs.telerik。 com/reporting/using-reports-in-applications/export-and-configure/export-formats
You can do this on report and/or on application level.
On report level:
Reference:
https://docs.telerik.com/reporting/p-telerik-reporting-report-runtimesettings
https://docs.telerik.com/reporting/using-reports-in-applications/export-and-configure/export-formats