none
URGENT:is there way take the last update for subreport when i call it in main report RRS feed

  • Question

  • hi team

     

    i have sub report in my appl and i am calling the sub report in main report

     

    Q1. when i mad a changes on subreport should i delete the sub report from my main report to activate the changes or there is some way take the last update for the sub report in each time i run the application

     

    Q2. i am trying to pass the sub report parameters from the main report and the folloing my code

     

    ParameterFields ParamtersFields = new ParameterFields();

    ReportObject subReport;

    SubreportObject subreportObject = (SubreportObject)subReport;

    ReportDocument subReportDocument = subreportObject.OpenSubreport("srHeader.rpt");

    // 4Add New Parameter "User Name"

    ParameterField ParamterField5 = new ParameterField();

    ParameterDiscreteValue ParamterDescreteValue5 = new ParameterDiscreteValue();

    ParamterDescreteValue5.Value = ((UserInformation)Session["Session_usrSsn"]).userName;

    ParamterField5.Name = "userName";

    ParamterField5.CurrentValues.Add(ParamterDescreteValue5);

    ParamtersFields.Add(ParamterField5);

    subReportDocument.ParameterFields.Add(ParamterField5);

    //add user type parameter

    ParameterField ParamterField6 = new ParameterField();

    ParameterDiscreteValue ParamterDescreteValue6 = new ParameterDiscreteValue();

    if (((UserInformation)Session["Session_usrSsn"]).isADUser == false)

    ParamterDescreteValue6.Value = "False";

    else

    ParamterDescreteValue6.Value = "True";

    ParamterField6.Name = "userType";

    ParamterField6.CurrentValues.Add(ParamterDescreteValue6);

    ParamtersFields.Add(ParamterField6);

    subReportDocument.ParameterFields.Add(ParamterField6);

     

    and i got this error

    'CrystalDecisions.CrystalReports.Engine.ReportObject' has no constructors defined
    * how can i pass the sub report params??

     

    thanx in advance

    Asmaa

     

    Thursday, May 29, 2008 7:54 AM