Solved

Create a Table of Contents in Crystal Report

Posted on 2010-08-23
14
804 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now