Master report

Stimulsoft Reports.WEB discussion
Post Reply
Ryan.A
Posts: 17
Joined: Mon May 14, 2018 7:59 am

Master report

Post 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.
Attachments
Facing this problem when include master report
Facing this problem when include master report
issue.PNG (41.85 KiB) Viewed 2083 times
Ryan.A
Posts: 17
Joined: Mon May 14, 2018 7:59 am

Re: Master report

Post by Ryan.A »

Any solution to this?
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Master report

Post by Lech Kulikowski »

Hello,

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

Thank you.
Ryan.A
Posts: 17
Joined: Mon May 14, 2018 7:59 am

Re: Master report

Post 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.
Attachments
SimpleApp.PNG
SimpleApp.PNG (126.79 KiB) Viewed 2047 times
ReportTemplate.zip
(491.94 KiB) Downloaded 128 times
SimpleApp.PNG
SimpleApp.PNG (126.79 KiB) Viewed 2048 times
Ryan.A
Posts: 17
Joined: Mon May 14, 2018 7:59 am

Re: Master report

Post by Ryan.A »

Any update?
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Master report

Post by Lech Kulikowski »

Hello,

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

Thank you.
Ryan.A
Posts: 17
Joined: Mon May 14, 2018 7:59 am

Re: Master report

Post by Ryan.A »

Hi,

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

Thank you for your time and support.
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Master report

Post by Andrew »

Hello,

Great!
Post Reply