AR 14 RDL how to set Parameter to Combine Reports

Posted by: lesauthjenthu on 4 October 2021, 7:08 am EST

    • Post Options:
    • Link

    Posted 4 October 2021, 7:08 am EST

    Hi, I need combine 2 report

    I have follow this: https://www.grapecity.com/activereportsnet/docs/v14/online/merge-multiple-reports.html

    I have combine success but I can’t set parameter to report

    I have set for each report, but after combine Parameter is null

    
    PageReport r1 = ....;
    PageReport r2 = ....;
    JArray json = ...;
    
    r1.Document.Parameters["MonitoringItemParam"].Values.Clear();
    r1.Document.Parameters["MonitoringItemParam"].Values.Add(new ParameterValue());
    r1.Document.Parameters["MonitoringItemParam"].Values[0].Value = json;
    
    r2...
    
    ReportCombiner combiner = new();
    combiner.AddReport(r1);
    combiner.AddReport(r2);
    PageDocument pageDocument = combiner.BuildReport().Document;
    
    // pageDocument.Parameters.Count = 0
    
    
  • Posted 6 October 2021, 10:20 pm EST

    SOLVED

            ```
    

    pageDocument.PageReport.Report.ReportParameters[0].DefaultValue.Values.Clear();

    pageDocument.PageReport.Report.ReportParameters[0].DefaultValue.Values.Add(json.ToString());

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels