Last post Apr 23, 2014 03:42 PM by uid257770
Apr 18, 2014 08:50 PM|jus6|LINK
I am trying to use rdl - reports in local mode with Webmatrix,
but what is missing in my code?
Or how it should be done? Now
only white screen appears ...
Report works fine in Report Builder 3.0.
var dbName = "ykr.mdf";
var sqlQuery = "SELECT * FROM tb1 WHERE ffto LIKE '001%' ";
var datTable = CreateDataTable(sqlQuery);
... // shows count > 1
ReportViewer ReportViewer1 = new ReportViewer();
ReportViewer1.ProcessingMode = ProcessingMode.Local;
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/report/m1.rdl");
ReportDataSource datasource = new ReportDataSource("Datatbl1", datTable);
<meta charset="utf-8" />
...report show appear here
<div id="Report" ></div>
Apr 21, 2014 04:43 AM|Mikesdotnetting|LINK
Razor pages don't support the use of server controls. So the only way to the use the ReportViewer control (or any web forms control for that matter) is to add a .aspx file to your site.
Apr 22, 2014 10:34 AM|jus6|LINK
Could you please recommend any
free and light reporting tool for Webmatrix?
Mainly for quite simple reporting.
Apr 22, 2014 11:08 AM|Mikesdotnetting|LINK
I'm not familiar with any, sorry.
Apr 23, 2014 03:42 PM|uid257770|LINK
built in asp.net charting library).