Problem with Page Footer showing up on Top of the Page

Сonversation on different topics
John21
Posts: 13
Joined: Wed Jan 08, 2025 11:48 am

Problem with Page Footer showing up on Top of the Page

Post by John21 »

Hi everyone.
I am still new to using Stimulsoft, so I might be doing something wrong here and I'm not sure what.

I have to design a report where data should be shown in the Page Header and the Page Footer. The problem is that while the Page Header works fine, for some reason the Page Footer shows up on top of the page. And then, if I print an item with multiple rows in a table, it just throws it in a dead loop.
Then I tried to put the header and the footer in a separate page and a Sub-report between them, then I placed everything else in the Sub-report. When I test printed it the header and the footer showed up at the top of the page one again, and even the first line of the Sub-report started at the very top causing all three of these elements to overlap.
Have you ever encountered a similar occurrence? What can I do to stop this behavior?

Thank you. :)
Lech Kulikowski
Posts: 7019
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with Page Footer showing up on Top of the Page

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
John21
Posts: 13
Joined: Wed Jan 08, 2025 11:48 am

Re: Problem with Page Footer showing up on Top of the Page

Post by John21 »

Thank you for the quick reply!
Unfortunately, I am prohibited from sending even a sample report.

Is there maybe another way of inserting the Footer into the report? I've tried using an external template for the report where I placed a page header, a page footer and a sub-report.
When I insert a simple text into the header and the footer it shows up correctly, but when I try using a data source it won't show up.
Of course I added a filter, but I'm not even sure if the external template gets the data it needs like the report does.

I hope that I managed to articulate what I am trying to ask. I've only been using this program for a few days and I'm new to this job altogether.

Thank you.
Lech Kulikowski
Posts: 7019
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with Page Footer showing up on Top of the Page

Post by Lech Kulikowski »

Hello,

Please clarify what product and version are you use?

Thank you.
John21
Posts: 13
Joined: Wed Jan 08, 2025 11:48 am

Re: Problem with Page Footer showing up on Top of the Page

Post by John21 »

Stimulsoft Designer, version: 2024.3.2 from 9.7.2024., WPF v2, .NET 7.0
Lech Kulikowski
Posts: 7019
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with Page Footer showing up on Top of the Page

Post by Lech Kulikowski »

Hello,

To show all data from the data source, you need to use the DataBand component. If you place data column on footer, header, etc - will show only one record from the data source.

Thank you.
John21
Posts: 13
Joined: Wed Jan 08, 2025 11:48 am

Re: Problem with Page Footer showing up on Top of the Page

Post by John21 »

Hello, my question might be a bit complex, but I'll try to explain it the best that I can.

We use Stimulsoft Designer, version: 2024.3.2 from 9.7.2024., WPF v2, .NET 7.0 embedded into our app that we are developing. We create External Templates in a different tab, designated to create templates, but it is also in Stimulsoft Designer. Then, those created templates are available to choose from when we begin designing new reports in the designated tab for creating reports. These templates that we create contain a Page Header Band, a Page Footer Band, and a Subreport (which is what becomes the report we create in the other tab). This External Template is also a Report in itself.

So, when we create a report, connect it to a data source and configure everything, we can choose an External Template. So when we test print this report, everything we placed into the external header and footer shows up, as long as it's plain text, and not data.
But, when we try to add data into the External Template, it can't really connect it to the item that we chose to print, even when we chose the same data source.

For example, we need a report where some Business Spaces are printed out and they need to show their Code in the header and the footer. Can we somehow connect these two reports? Just to clarify, each Business Space has only one Code, so no need for a DataBand.

And why I'm asking if this is possible, is because when I don't use an External Template and try to put the Page Footer Band into the report, it still just places it at the top of the page, despite every option I tried to make this behavior stop.

So if there's a way to somehow connect the External Template with the Report that it is placed in, I would appreciate an explanation. If not, the maybe an alternative?

Thank you and sorry for the long text.
Lech Kulikowski
Posts: 7019
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with Page Footer showing up on Top of the Page

Post by Lech Kulikowski »

Hello,

You can use SubReports or modufy, add components from the code.

Thank you.
John21
Posts: 13
Joined: Wed Jan 08, 2025 11:48 am

Re: Problem with Page Footer showing up on Top of the Page

Post by John21 »

Hello,

Do you have maybe some links where I could find an explanation or example of that? I'm not really sure how to do it.

Thank you Lech for always responding.
Post Reply