GroupHeader1 not printing on all pages

Stimulsoft Reports.PHP discussion
Post Reply
ohkovar
Posts: 2
Joined: Sun Oct 06, 2013 4:04 am

GroupHeader1 not printing on all pages

Post by ohkovar »

I have a report laid out like:

GroupHeaderBand1 (Print On All Pages=True)
DataBand1 (datasource from MySQL database with filter criteria)
DataBand2 (same datasource as DataBand1 but with a different filter criteria)
PageFooterBand1 (Print On All Pages=True)

For some reason, when DataBand2 continues onto a second page, GroupHeaderBand1 does not print on the second page. So, the rendered report looks like this:

for record group 1:
Header
Data1
Data1
Data2
Data2
Footer
[page break]

for record group 2:
Header
Data1
Data2
Data2
Data2
Footer
[page break]
Data2
Data2
Footer

(notice there is no Header on the second page for group 2).
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: GroupHeader1 not printing on all pages

Post by HighAley »

Hello.

Sorry, but we couldn't reproduce your issue.
Which version do you use?
Could you send us your report template with sample data for analysis.

Thank you.
ohkovar
Posts: 2
Joined: Sun Oct 06, 2013 4:04 am

Re: GroupHeader1 not printing on all pages

Post by ohkovar »

Here is the .mrt file. It pulls data from a MySQL database. The returned result is basically something like:

Patient 1, Medication 1, freq=Every Other Day
Patient 1, Medication 2, freq=PRN

It is supposed to put the medications that start with "PRN" in its own section (Databand2) and the other meds in their own section (Databand1). That works as expected. The only problem is that the header does not print on all pages. If Databand2 extends onto a second page, the header band does not print.
Attachments
MAR.mrt
(204.07 KiB) Downloaded 505 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: GroupHeader1 not printing on all pages

Post by HighAley »

Hello.

The Group Header Band is connected to the first Data Band only. the second Data Band is rendered separately without grouping.
In your case you could try to add additional grouping by expression from DataBand filter and use one Data Band.

To give you more detailed answer we need sample data for the report.

As a way, you can use the following code in the BeforePrint event of a page and sent us the files you get.

Code: Select all

{YourDataTableName}.DataTable.DataSet.WriteXml("e:\\data.xml");
{YourDataTableName}.DataTable.DataSet.WriteXmlSchema("e:\\data.xsd");
Thank you.
Post Reply