我有一些Telerik报表,我在MVC Razor视图上使用Telerik报表视图。我可以轻松地在报表中转换数据,但无法转换报表工具栏
之类的ReportView元素我该如何处理?这是我的报告示例之一
@{
DateTime today = DateTime.Today;
DateTime startOfMonth = new DateTime(today.Year, today.Month, 1);
DateTime today1 = DateTime.Today;
DateTime endOfMonth = new DateTime(today1.Year, today1.Month, DateTime.DaysInMonth(today1.Year, today1.Month));
UriReportSource trial = new UriReportSource();
trial.Uri = "Card Summary Report.trdx";
trial.Parameters.Add("DateFdy", startOfMonth);
trial.Parameters.Add("DateEnd", endOfMonth);
trial.Parameters.Add("Culture", (string)ViewData["lang"]);
}
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl("/api/reports/")
.ReportSource(trial)
.ViewMode(ViewModes.INTERACTIVE)
.ScaleMode(ScaleModes.SPECIFIC)
.Scale(1.0)
.PersistSession(false))