This is a migrated thread and some comments may be shown as answers.

problem getting report to display in Sharepoint

3 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gregory Hite
Top achievements
Rank 1
Gregory Hite asked on 03 May 2010, 05:48 PM
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);

}

}

}

 

 

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 05 May 2010, 01:50 PM
Hi Gregory,

Your question has already been answered in the other thread you've opened. Please, see our answer there for more information.
We kindly ask you to use just one support channel to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two tickets instead of one. Moreover threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

Thank you for your understanding.

Greetings,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
dmetge
Top achievements
Rank 1
answered on 05 Oct 2010, 08:32 AM
Hi Gregory and Steve,

could you please give here a link to this famous "other thread" talking about this issue ?

Indeed I've got exactly the same problem, and I've been searching in the forum but I couldn't find this thread... I've found other posts from Gregory, in these posts he was giving a link on a specific "ticket" solving the problem, but it was probably a personal ticket and the link doesn't work. So the answer cannot be so easily found in the forum...

Thanks in advance,

Daniel
0
Steve
Telerik team
answered on 05 Oct 2010, 01:01 PM
Hi dmetge,

You are correct, Gregory had opened a support ticket which is not visible by others. Ultimately the problem was that the viewer is missing ID, which caused the HTML element that wraps the viewer's content (a DIV element) to be rendered with no ID thus making a javaScript function to fail. However this has been fixed in the Q2 release (see release notes), specifically: "A javascript error occurs when the viewer has no ID".
Additionally check the following KB article: The styles of the web report viewer's toolbar are messed up.

Best wishes,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Gregory Hite
Top achievements
Rank 1
Answers by
Steve
Telerik team
dmetge
Top achievements
Rank 1
Share this question
or