Subreport not printed correctly

Stimulsoft Reports.NET discussion
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Subreport not printed correctly

Post by isoft »

Hello

I am printing a report that uses subreport. The report has 2 columns and the following structure:

ReportTitle
GroupHeaderBand1
GroupHeaderBand2
GroupHeaderBand3 (Subreport)
GroupHeaderBand4
GroupHeaderBand5
DataBand

The SubReport component is placed in GroupHeaderBand3. The problem is that the Subreport is not being printed where it should be, but instead it's printed on a separate page, not before GroupHeaderBand4.

Any ideas as to why this is happening?

P.S. I am adding Suberport dynamically to Main report through GetSubreport event.

Thanks in advance.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Subreport not printed correctly

Post by HighAley »

Hello.

Do you add external subreport or not?
Could you send us sample project which reproduces the issue.

Thank you.
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Re: Subreport not printed correctly

Post by isoft »

Hello

Yes, I am using an external subreport. I have sent already the .mrt files on your support email. Do you want me to send them here again?

Thanks.

Ivan Musa
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Subreport not printed correctly

Post by Alex K. »

Hello,

Please try to check the place of SubReport. It is placed directly on the Page, not on GroupHeader component.

Thank you.
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Re: Subreport not printed correctly

Post by isoft »

Hello

Thank you for your response.

I have tried to put it on GroupHeaderBand but it doesn't want to go there. You can try it for yourself. When you drag it onto the GroupHeaderBand, it goes back to the Page.

I am using the 2013.1.1600 version.

Thank you,
Ivan
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Subreport not printed correctly

Post by Alex K. »

Hello, Ivan

Please try to set the EngineVersion property for report to EngineV2 value.

Thank you.
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Re: Subreport not printed correctly

Post by isoft »

Ok, I'll try that. Can you please tell me can I set it in the designer or do I have to do it through code and then call the report.Design()?

Thank you
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Re: Subreport not printed correctly

Post by isoft »

Hello

I have called it through code and it works now.

Thank you and best regards,

Ivan
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Subreport not printed correctly

Post by Alex K. »

Hello,

We are always glad to help you!
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Re: Subreport not printed correctly

Post by isoft »

Hello Aleksey

Unfotunatelly, I have one more problem. :-)

The problem is that when set to EngineV2, my ReportTitleBand is spread only on one column. In EngineV1, the ReportTitleBand was spread through entire page and the columns on the first page started beneath the ReportTitleBand. Is there a way to have this in V2?

I have attached a V1 and V2 pictures so that you can have a better understanding of what I'm talking about.

Thank you!
Attachments
EngineV2.png
EngineV2.png (283.06 KiB) Viewed 2840 times
EngineV1.png
EngineV1.png (190.14 KiB) Viewed 2840 times
Post Reply