Мне интересно, как передать источник данных объекта в просмотрщик отчетов html5. У меня есть мнение, как это:Telerik Reporting - Передача объекта в UriReportSource Отчеты Html5
@{
var theData = new UriReportSource();
theData.Uri = "TestingReport.trdx";
//this is should passing the data right?
theData.Parameters.Add("passing", Model.pasing);
theData.Parameters.Add("anotherPassing", Model.another);
}
@(
Html.TelerikReporting().ReportViewer()
.TemplateUrl("../ReportViewer/templates/telerikReportViewerTemplate.html").Id("ReportId")
.ReportSource(theData)
.ViewMode(ViewModes.PRINT_PREVIEW)
.ScaleMode(ScaleModes.SPECIFIC)
.Scale(1.0)
.ServiceUrl("/api/reports/")
)
Я уже проводной вверх .trdx отчета в источник данных объекта.
И this документация не помогает, используется TypeDataSource.