Showing Footer

Stimulsoft Reports.NET discussion
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Showing Footer

Post by simgschw »

Hi,

I generate a report via C#. Sometimes there is more than one table (StiTable) inserted in the report. Each table has a footerRow with no borders.

The generated report could look like this:
Report_with_more_tables.png
Report_with_more_tables.png (57.81 KiB) Viewed 2214 times
If a table breaks the page, the footer should show the text weiter auf der nächsten Seite ... before the pagebreak. The footer should not be shown at the end of the table.

As you can see, at the first page and on the last page the footer rows of the tables are correct. At the second page the footer ought to be not shown.

I couldn't find the right setting to do this. In this case I tried the setting

Code: Select all

_table.FooterPrintOn = StiPrintOnType.ExceptLastPage;

I would be glad, if your suggested solution could help me out of this misery.


Thanks in advance.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Showing Footer

Post by Alex K. »

Hello,

Can you please send us your report with test data for analysis.

Thank you.
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Re: Showing Footer

Post by simgschw »

I created a sample project. Please have a look on it.


Again: When a table invokes a pagebreak, then the footer of the table should be shown before the page breaks. The footer should not be shown at the end of the table.

RuntimeTableCreation.zip
(134.7 KiB) Downloaded 258 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Showing Footer

Post by HighAley »

Hello.

Sorry, we need a little more time to prepare an answer for you.

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

Re: Showing Footer

Post by Alex K. »

Hello,

In this case, you can use the additional variable for each band, doublepass and additional code in events.
Please check the modified report in attachment.

Thank you.
Attachments
Report_modified.mrt
(23.43 KiB) Downloaded 647 times
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Re: Showing Footer

Post by simgschw »

Hi,

your solution is not working.

I can't understand why you don't code the solution in the c# project I gave you ?!

It would be kind, if you or any developer could send me the working c# code in the project.

Hope your answer will be useful finally.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Showing Footer

Post by Andrew »

Hello,
your solution is not working.
Please give us the detailed explanation of what is not working for you. That will help us understand the issue.

In addition to our previous reply, the StiPrintOnType.ExceptLastPage property is related to the entire report but not to the pages where the table is put.

Thank you.
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Re: Showing Footer

Post by simgschw »

The report you sent me, has no datasource attached (no surprise, because datasources or dataviews are generated at runtime). So the report is not as useful as I hoped it could be. The solution for my problem is not visible!

Additional, all of my reports have to be generated at runtime and the number of tables is variable. That's why I need to know how this is coded in c#.

Hope this is reason enough for you to give me the c# solution. And please don't post the code from the Stimulsoft Designer! I wan't to see the solution write in the code of the c# project.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Showing Footer

Post by Andrew »

Hello,
no datasource attached
This report is a one from your application with your data. In this report, using additional code in events, the issue is solved. You may see that code in the report modified by us and copy it into the report with connected data in your application. We gave you tips and advice but not the finished solution. The final steps should be done by you.
Not all issues can solved from the C# code.

Thank you.
simgschw
Posts: 73
Joined: Mon Jan 07, 2013 1:34 pm

Re: Showing Footer

Post by simgschw »

So, did some testing on my own.

Now, I got the problem, that something is wrong with the variables. Maybe vars are accessed by uncompiled/compiled report. don't know the cause ...

This is what I've done so far:

added the eventhandler (also tried to add the eventscript). but no difference in appearance occured.

So, I think there's something wrong how the dictionary-variables are accessed.

can you tell me if I have to use the variables of the compiled report or of the "ordinary" report?

Or if this doesn't matter, when is the system var PageNumber incremented? Because in my case a add some components and after finishing I render and show the report.

Maybe there's something wrong because the Report.PageNumber is not incremented.

Thanks in Advance.
Post Reply