Solved

Create a Table of Contents in Crystal Report

Posted on 2010-08-23
14
807 Views
Last Modified: 2012-05-10
How can i get a Table of Contents in a Report Header and have it change based on a dynamic group 1??  Never created a Table of Contents in Crystal..

I need the following Table of Contents to give me

Field1....Page Number X  to Y

and have Field1 change when the group is entered
0
Comment
Question by:Mikeyman_01
14 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 33507005
0
 

Author Comment

by:Mikeyman_01
ID: 33507483
hi mlmcc,

Seems like I only talk to you  :)...

Followed the instructions from the SAP...

I have entered the Script

{?LinkReceiver}
DELETE FROM "TableOfContents"
WHERE "TableOfContents"."DateTime" <> {?DateTime};
SELECT * FROM "TableOfContent.

I have double checked all of the underlying info and all appears correct..

I get this error " Failed to retrieve data from the database. Details: 42000 9Microsoft0[ODBC SQL SERVER DRIVER][SQL SERVER]Unclosed quotation mark after the character string '}; SELECT * FROM "TableOfContents"'. [Database Vendor Code:105]

Any thoughts

0
 
LVL 77

Expert Comment

by:peter57r
ID: 33508203
The last line of the SQL you have posted is clearly incorrect.
Is that a typo in your real code or just in what you have posted here.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:Mikeyman_01
ID: 33511047
Yes, it is a typo..but not in the real code or in what I posted...the error placed that in even though my code doesn't have that error..I think I probably typed and re-typed the code 5 or 6 times and the error never goes away or changes...Weird
0
 
LVL 77

Expert Comment

by:peter57r
ID: 33511190
Perhaps I wasn't clear.
The last line here is not valid syntax...

{?LinkReceiver}
DELETE FROM "TableOfContents"
WHERE "TableOfContents"."DateTime" <> {?DateTime};
SELECT * FROM "TableOfContent.
0
 

Author Comment

by:Mikeyman_01
ID: 33511225
But SAP dictates this as the correct entry. If its not right (which it clearly isn't) How can I work this?
0
 

Author Comment

by:Mikeyman_01
ID: 33511287
But SAP dictates this as the correct entry. If its not right (which it clearly isn't) How can I work this?
0
 
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 33512000
What database do you have?  SQL Server, Oracle or something else?  The syntax will be dictated by the flavor of SQL you use.

~Kurt
0
 
LVL 77

Expert Comment

by:peter57r
ID: 33514133
I don't understand what you mean by this..
"But SAP dictates this as the correct entry.  "

Crystal Reports does not validate the sql command, it just sends it to the database.
0
 
LVL 22

Expert Comment

by:Ido Millet
ID: 33515220
At least one of the 3rd-party Crystal Reports Desktop Scheduling tools listed at: http://www.kenhamady.com/bookmarks.html provides that functionality.  However, it does this by automatically exporting the Crystal report to PDF and adding the Table of Contents to the resulting PDF file.  It can also automate the emailing of the resulting file.
0
 

Author Comment

by:Mikeyman_01
ID: 33515299
To peter57

Look at the sap link mlmmc sent.
0
 
LVL 77

Expert Comment

by:peter57r
ID: 33518575
OK , I've looked -  the last line of the code that you posted here is incomplete compared to the code in the link.  
0
 

Author Comment

by:Mikeyman_01
ID: 33520695
Ok...what did I miss..god as my witness I typed and retyped the code to try and fix it..
0
 
LVL 2

Expert Comment

by:oliff
ID: 33529525
Perhaps attach your code in the code field of the message post, rather than paste it into your message. Quote marks into a website field not designed for code could cause some interesting errors.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question