Page 1 of 1

Master report

Posted: Thu Oct 10, 2019 6:16 am
by Ryan.A
Hi,

I try to implement master report in my project. When I preview the report, it became the image I attached below and it show errors "The component is partially outside of the page".

I am using version 2018.2.3 ASP.NET

Code: Select all

protected void StiWebDesigner1_GetReport(object sender, StiReportDataEventArgs e)
        {

            e.Report = new StiReport();

            e.Report.Load(Server.MapPath(@"/ReportTemp/SimpleList.mrt"));

            DataSet data = new DataSet("Demo");

            data.ReadXml(Server.MapPath("/ReportTemp/Demo.xml"));

            e.Report.RegData(data);

            e.Report.Dictionary.Synchronize();

        }

        protected void StiWebDesigner1_PreviewReport(object sender, StiReportDataEventArgs e)
        {
            var masterReport = new StiReport();
            masterReport.Load(Server.MapPath(@"/ReportTemp/MasterReport2.mrt"));
            e.Report.MasterReport = masterReport.SaveToString();
            DataSet data = new DataSet("Demo");

            data.ReadXml(Server.MapPath("/ReportTemp/Demo.xml"));

            e.Report.RegData(data);

        }
Am I implementing it correctly?

Thank you.

Re: Master report

Posted: Fri Oct 11, 2019 12:17 pm
by Ryan.A
Any solution to this?

Re: Master report

Posted: Fri Oct 11, 2019 2:34 pm
by Lech Kulikowski
Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.

Re: Master report

Posted: Sat Oct 12, 2019 4:34 am
by Ryan.A
I cannot add my project zip file in the attachment, it show "error parse server response"

https://drive.google.com/open?id=11BSGG ... QItZ332YRN

Thank you.

Re: Master report

Posted: Sun Oct 13, 2019 11:54 am
by Ryan.A
Any update?

Re: Master report

Posted: Tue Oct 15, 2019 5:42 pm
by Lech Kulikowski
Hello,

In your reports are different ReportUnits (Inches and Centimeters). It should be the same.

Thank you.

Re: Master report

Posted: Wed Oct 16, 2019 3:52 am
by Ryan.A
Hi,

I changed to same ReportUnits as you suggested and it worked.

Thank you for your time and support.

Re: Master report

Posted: Thu Oct 17, 2019 7:27 am
by Andrew
Hello,

Great!