TOC Creation - Reg.

Stimulsoft Ultimate discussion
Post Reply
shan
Posts: 51
Joined: Mon Nov 05, 2012 10:16 am

TOC Creation - Reg.

Post by shan »

Hi,
I need to the create the TOC as per the below mentioned sample.
1. C_Name1.........1
2. C_Name2.........2-3
3. C_Name3.........4
4. C_Name4.........5-6
But now i can generate like below design.
1. C_Name1.........1
2. C_Name2.........2
3. C_Name2.........3
4. C_Name3.........4
5. C_Name4.........5
6. C_Name4.........6

Kindly look into the above mentioned details and then suggest us to proceed further.

Thanks & Regards,
Shan
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: TOC Creation - Reg.

Post by Ivan »

Hello,

Can you please send us a sample report template with data, which reproduce the issue?

Thank you.
shan
Posts: 51
Joined: Mon Nov 05, 2012 10:16 am

Re: TOC Creation - Reg.

Post by shan »

Ivan wrote:Hello,

Can you please send us a sample report template with data, which reproduce the issue?

Thank you.

Hi,
Kindly find the attached sample report with database for your reference.

I need the TOC page Light1 (C_Name) to show 1-2, but in the above template it shows 1.

If any doubt let me know.

Regards,
Shan
Attachments
SampleDB.rar
Sample DB
(81.05 KiB) Downloaded 228 times
SampleReportForTOC.mrt
Sample Report
(36.46 KiB) Downloaded 379 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: TOC Creation - Reg.

Post by Alex K. »

Hello,

You can try to use the additional code and object for saving the first and last page for each group In the First pass. And in second pass show these values.

Thank you.
shan
Posts: 51
Joined: Mon Nov 05, 2012 10:16 am

Re: TOC Creation - Reg.

Post by shan »

Aleksey wrote:Hello,

You can try to use the additional code and object for saving the first and last page for each group In the First pass. And in second pass show these values.

Thank you.
Hi,
Thanks for your response. Can u edit the template and show me the solution. Because i cant get you? and also i am in urge.

Thanks & Regards,
Shan
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: TOC Creation - Reg.

Post by Alex K. »

Hello,

Please check the sample report in the attachment.
There is two HashTable for start page and for end page which calculate in AfterPrint event of databand. Also the NumberOfPass is set to "DoublePass" value.

You can make the similar solution in yours report.

Thank you.
Attachments
Capture.PNG
Capture.PNG (71.7 KiB) Viewed 2814 times
Demo.xsd
(12.72 KiB) Downloaded 246 times
Demo.xml
(1.79 MiB) Downloaded 244 times
TOC.mrt
(40.46 KiB) Downloaded 239 times
Post Reply