Subreports - PrintOnPreviousPage

Stimulsoft Reports.NET discussion
msvallinayagam
Posts: 7
Joined: Mon Jul 07, 2008 2:36 pm
Location: Little Rock

Subreports - PrintOnPreviousPage

Post by msvallinayagam »

Hi,

I got the sample project for subreports from the link http://www.stimulsoft.com/private/subreports.zip. It works fine if the values for the parameter PrintOnPreviousPage is not passed.

Report.SubReports.Add(SubReport1)

But I want to print the second SubReport with PrintOnPreviousPage parameter set to true.

Report.SubReports.Add(SubReport2,FALSE,TRUE)

When I add the subreport like this, the report data is not formatted properly and some of the columns are missing in the first page of SubReport2. The same thing happens in the sample downloaded from the above said link.

Please help me in solving the issue.

Thanks in Advance,
Meenachi
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Subreports - PrintOnPreviousPage

Post by Edward »

Hello, Meenachi.

Thank you for the bug report.

The issue is connected with different units for the reports which were used as subreports.

The workaround for the solution you wrote about is here:

Code: Select all

StiReport report1 = GetReport("SimpleList.mrt");
StiReport report2 = GetReport("SimpleGroup.mrt");
StiReport report3 = GetReport("Master-Detail.mrt");
StiReport report = new StiReport();

report.ReportUnit = report1.ReportUnit;

report.SubReports.Add(report1);
report.SubReports.Add(report2, checkBoxResetPageNumber.Checked, checkBoxPrintOnPreviousPage.Checked);
report.SubReports.Add(report3, checkBoxResetPageNumber.Checked, checkBoxPrintOnPreviousPage.Checked);		
report.Show();
We will let you know in this topic when the solution is ready.

Thank you.
msvallinayagam
Posts: 7
Joined: Mon Jul 07, 2008 2:36 pm
Location: Little Rock

Subreports - PrintOnPreviousPage

Post by msvallinayagam »

Hi Edward,

Thank you very much for your reply. I'll try this and let you know.

Regards,
Meenachi
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Subreports - PrintOnPreviousPage

Post by Vital »

Hello Meenachi,

Thank you for your bug report. Issue is fixed.

msvallinayagam
Posts: 7
Joined: Mon Jul 07, 2008 2:36 pm
Location: Little Rock

Subreports - PrintOnPreviousPage

Post by msvallinayagam »

Hi Vital,

Now the Formating issue in the page 1 of Subreport2 is solved. But the PageFooter of SubReport1 is displayed in the middle of the page and the PageFooter of SubReport2 is displayed at the end. If there are two PageFooters displayed on the same page then I want to suppress one PageFooter that is printing in the middle of the page. Is there any way to do it ? Please reply.

Thanks,
Meenachi
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Subreports - PrintOnPreviousPage

Post by Edward »

Please check the build from today, when it is available.

Thank you.
msvallinayagam
Posts: 7
Joined: Mon Jul 07, 2008 2:36 pm
Location: Little Rock

Subreports - PrintOnPreviousPage

Post by msvallinayagam »

Hi Edward,

Thank you very much for your Reply.

Right now our stimulsoft version is "2008.1.139 from 18 February 2008" which is running in a production environment. Do you mean to take the latest version and install to solve this issue ? If so, then we need to put up a lot of testing effort as per our policy because of the change in the version. Do you have any patch available for this issue to be fixed for the version we are having right now? Kindly let me know.

Thanks,
Meenachi
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Subreports - PrintOnPreviousPage

Post by Edward »

Hello, Meenachi.

Please send a request to support[at]stimulsoft.com and we will prepare a patch exactly for that build.

Thank you.
msvallinayagam
Posts: 7
Joined: Mon Jul 07, 2008 2:36 pm
Location: Little Rock

Subreports - PrintOnPreviousPage

Post by msvallinayagam »

Hello Edward,

Thank you very much for your reply. I'll send a request to the support@stimulsoft.com. Before that, I faced one more
problem in this subreports property.

I have added Subreport1, Subreport2, Subreport3 and Subreport4 respectively. When printon property for a pageheader or groupheader in Subreport3 is set to "Only First Page", all the subreports that are added prior to this Subreport3 (In this case Subreport1 and Subreport2) dissappears after the report is rendered. I checked this in the sample application also. Please help me in solving this issue. Once this is solved I can send a request to the support@stimulsoft.com so that the patch will have the solution for both the issues.

Thanks in Advance,
Meenachi
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Subreports - PrintOnPreviousPage

Post by Edward »

There is a workaround for that:

In a very beginning of the application you have to set:

Code: Select all

Stimulsoft.Report.StiOptions.Engine.UseAdvancedPrintOn = false;

We will inform you about our progress in that topic.

Thank you.
Post Reply