Hi all!
One of our customers is requesting a report with chapters and numbering as known from MS Word like this:
1 Element 01
1.1 Element 01a
1.2 Element 01b
1.2.1 Element 01ba
1.2.2 Element 01bb
1.3 Element01c
2 Element 02
2.1 Element 02a
2.1.1 Element 02aa
etc
The chapter structure is coming from the hierachy of the elements, the numbering should be created during the report execution.
Also the numbering, the element name and the page numer shoul be displayed in the table of content like this
Number Name Page
1 Element 01 1
1.1 Element 01a 2
1.2 Element 01b 3
etc.
Is it possible to create a report like this?
regards
Dirk
Chapters and Numbering in Reports
Chapters and Numbering in Reports
Hello, Dirk.
Yes, it is possible.
Please read more about that here:
http://www.stimulsoft.com/Documentation ... index.html
In the standard installation of Stimulsoft Reports.Net 'Demo' sample application comes. That application contains reports 'Bookmarks, Hyperlinks' and 'Anchors' in the 'Navigaton' group of reports. These reports shows Table of Contents 'in action'.
Please let us know if any help is required.
Thank you.
Yes, it is possible.
Please read more about that here:
http://www.stimulsoft.com/Documentation ... index.html
In the standard installation of Stimulsoft Reports.Net 'Demo' sample application comes. That application contains reports 'Bookmarks, Hyperlinks' and 'Anchors' in the 'Navigaton' group of reports. These reports shows Table of Contents 'in action'.
Please let us know if any help is required.
Thank you.
Chapters and Numbering in Reports
Hi Edward,
thanks for your fast help!
I already found the way how to create the table of content by using anchors and I use {Line} for the numbering
But {Line} always gives only a flat numer back, and seems not to depend on the hierachy level of the elements.
Is it possible to configure the {Line} Funktion in the way that it will give back the numbering like 1.1, 1.2 depending of the elements hierachy?
kind regards
Dirk
thanks for your fast help!
I already found the way how to create the table of content by using anchors and I use {Line} for the numbering
But {Line} always gives only a flat numer back, and seems not to depend on the hierachy level of the elements.
Is it possible to configure the {Line} Funktion in the way that it will give back the numbering like 1.1, 1.2 depending of the elements hierachy?
kind regards
Dirk
Chapters and Numbering in Reports
Hello, Dirk.
Please add a int type variable in the Dictionary. E.g. Var1 and Var2 of the type integer.
In the BeforePrintEvent of the TOC's Band you can increase them as required.
In the Text expression you can show as much variables as required:
{Line}.{Var1}.{Var2}
And hierarchy can define Var1. You should increase or set it to zero in the BeforePrintEvent of the band of higher level.
Please refer to the 'Anchors' report in 'Navigation' section of the Demo example application which comes with standard installation and you can see that Var2 can be increased in DataBan4 and used for numbering as the Category number.
Thank you.
Please add a int type variable in the Dictionary. E.g. Var1 and Var2 of the type integer.
In the BeforePrintEvent of the TOC's Band you can increase them as required.
In the Text expression you can show as much variables as required:
{Line}.{Var1}.{Var2}
And hierarchy can define Var1. You should increase or set it to zero in the BeforePrintEvent of the band of higher level.
Please refer to the 'Anchors' report in 'Navigation' section of the Demo example application which comes with standard installation and you can see that Var2 can be increased in DataBan4 and used for numbering as the Category number.
Thank you.