reportviewer in web forms not showing content or print button


N

ns

I am trying to set up Report Viewer with Local more report to use in my web
app but I can't make it to display any data or print button in toolbar (even
though its set to show: true i only see navig and export buttons).
this is the code in page_load event meant to make this work. the user.ds
object is filled with data from before, and there are no errors, just empty
surface, and no print button.
pls help :)

ReportViewer1.ProcessingMode = ProcessingMode.Local;
LocalReport lclReport = this.ReportViewer1.LocalReport;
lclReport.ReportPath = Server.MapPath("") + "\\report.rdlc";

lclReport.DataSources.Add(
new ReportDataSource("dsSotac_Izvjestaj_rjesenja",
user.ds.reportTable));
ReportViewer1.LocalReport.Refresh();
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top