Page 1 of 2

Showing Footer

Posted: Thu Jan 31, 2013 9:32 am
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 2219 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.

Re: Showing Footer

Posted: Thu Jan 31, 2013 9:58 am
by Alex K.
Hello,

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

Thank you.

Re: Showing Footer

Posted: Thu Jan 31, 2013 1:22 pm
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

Re: Showing Footer

Posted: Fri Feb 01, 2013 2:19 pm
by HighAley
Hello.

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

Thank you.

Re: Showing Footer

Posted: Mon Feb 04, 2013 7:43 am
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.

Re: Showing Footer

Posted: Mon Feb 04, 2013 3:22 pm
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.

Re: Showing Footer

Posted: Tue Feb 05, 2013 6:41 am
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.

Re: Showing Footer

Posted: Tue Feb 05, 2013 6:54 am
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.

Re: Showing Footer

Posted: Tue Feb 05, 2013 8:16 am
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.

Re: Showing Footer

Posted: Wed Feb 06, 2013 10:17 am
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.