Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Create a Table of Contents in Crystal Report

Posted on 2010-08-23
14
806 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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