I have a report that works fine when deployed to a regular web form. The goal is to get it working in Sharepoint (WSS 3.0) I've used the SmartTemplates from codeplex to build a webpart project and have successfully deployed it to WSS - however, all that displays is a mucked up version of the report viewer toolbar. Actually, when it first comes up, it shows the "Generating Report..." and then flashes the actual report for a split second but then disappears and I'm left with what's in the attached screenshot. The code for the webpart is below - pretty basic:
using
System;
using System.Web.UI.WebControls;
using System.Web;
namespace drc.okc.wss
{
public class NWRM_Dashboard : System.Web.UI.WebControls.WebParts.WebPart
{
protected override void RenderContents(System.Web.UI.HtmlTextWriter writer)
{
Telerik.ReportViewer.WebForms.ReportViewer ourReportViewer =
new Telerik.ReportViewer.WebForms.ReportViewer();
ourReportViewer.Report =
new drc.okc.iuid.reports.Metrics.NWRM_Summary();
this.Controls.Add(ourReportViewer);
ourReportViewer.RenderControl(writer);
}
}
}