WebParts using MS .Net Reportviewer Control

Last post 06-26-2008 9:13 AM by vinz. 3 replies.

Sort Posts:

  • WebParts using MS .Net Reportviewer Control

    06-25-2008, 12:16 AM

    Hi,

    Usercontrol having ms report viewer control and displaying graph. when i using this usercontrol in webparts. Its working fine. but when ever i click on minimize and restore verbs graph is not displaying.

    same user control i used MSOWC11 , it generate image graph. when i click on minimize and restore its working fine.

     

    why ms reportviewr not working in webparts. I am using asp.net3.5 and ajax updatepannel. i removed ajax updated pannel and i tryed. same problem i am facing.

    Can you help me...... 

     

     

  • Re: WebParts using MS .Net Reportviewer Control

    06-25-2008, 10:51 AM
    • All-Star
      91,728 point All-Star
    • vinz
    • Member since 10-05-2007, 11:47 AM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    I think the problem is how do you Bind your Report with Data from DB in your Usercontrol .. I have used ReportViewer to display reports and create it as a WebPart  before and i don't have any problems with that..

    "Code,Beer and Music ~ my way of being a programmer"

  • Re: WebParts using MS .Net Reportviewer Control

    06-25-2008, 11:57 PM

    Thanks for yours reply Vinz,

     In UserControl i am binding data using push method. I created xml schema and codebind binding data. How you are binding data either push method or pull method. I will try pull method. 

      DataSet ds = new DataSet(); 
    

            ds.ReadXml(Server.MapPath("~/App_Data/IssueList.xml"));
            rptChartViewer.Visible = true;

            rptChartViewer.LocalReport.ReportPath = Server.MapPath("ReportIssue.rdlc");
            rptChartViewer.LocalReport.DataSources.Clear();
            rptChartViewer.LocalReport.DataSources.Add(new ReportDataSource("dsIssue_dtIssue", ds.Tables[0]));
            rptChartViewer.DataBind();

     

  • Re: WebParts using MS .Net Reportviewer Control

    06-26-2008, 9:13 AM
    • All-Star
      91,728 point All-Star
    • vinz
    • Member since 10-05-2007, 11:47 AM
    • Cebu, Philippines
    • Posts 13,769
    • TrustedFriends-MVPs

    I am binding the Data in PageLoad event of UserControl with Not IsPostBack method.. see my article below about ReportViewer control

    http://www.gridviewguy.com/Articles/339_Creating_Charts_Using_Aspnet_ReportViewer_Control.aspx 

    "Code,Beer and Music ~ my way of being a programmer"

Page 1 of 1 (4 items)