problem getting report to display in Sharepoint

4 posts, 0 answers
  1. Gregory Hite
    Gregory Hite avatar
    4 posts
    Member since:
    Feb 2010

    Posted 03 May 2010 Link to this post

    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);

    }

    }

    }

     

     

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 May 2010 Link to this post

    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.
  3. DevCraft banner
  4. dmetge
    dmetge avatar
    7 posts
    Member since:
    Jun 2007

    Posted 05 Oct 2010 Link to this post

    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
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Oct 2010 Link to this post

    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
Back to Top