Solved

Create a Table of Contents in Crystal Report

Posted on 2010-08-23
14
805 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Join issues with Crystal Report 10 69
Bulk Update Crystal Reports 2013 SP5 Data Source 2 48
Crystal Reports - group header 2 47
Help with a Crystal Report Formula 8 46
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. …
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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