Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table of Contents using Crystal 7

Status
Not open for further replies.

leenabhanot

Programmer
Mar 19, 2001
8
US
We are generating invoices using Crystal7 and have a summary page in the beginning. Is there any way we can have something like a "Table of Contents" on the first page of each invoice. i.e a description of different services in 1 column and the number of pages the details of that service type span.
eg.
Description Pages
Email service 1-9

I don't know if this makes a difference but the details are in a subreport.
ANy ideas on how to do this using an external vb application or through any version of crystal itself would be greatly appreciated.
Thanks,
Leena
 
In CR you could only print the TOC after the pages themselves had printed. And only in V8, and even then it would take some work coding.

It is only possible in V8 because you can maintain an array variable using some new V8 features. You would have to create two arrays, and add an item in the first array every time a value went by that needed to be listed. At the same time you would store the current page number in another variable array.

You could display the results at the end. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Hi, Thanks so much. This is exactly what I was thinking. But is there any way we can declare a variable length array in CR8. We would definitely need it because each invoice has a different number of services to be recorded.
Thanks,
Leena
 
I don't think so, but look up the following in the help.

redim
redim preserve

You will probably have to count the items at the beginning of each group and assign the size each time, or redim preserve as you add each new item. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top