Crystal Reports - Disable Tooltips at runtime (CR 8.5 using RDC, VB 6)

Posted on 2004-10-18
Medium Priority
Last Modified: 2008-01-09

I'm trying to find code to add to my VB 6 project that will loop through each field and textbox (or anything else that produces a tooltip) and disable that tooltip.  

I found the following website:

which describes how to do exactly what I want to do, but I can't get it to work.  

For I = 1 To Report.Sections.Count

' Loop through all the sections in the report
For X = 1 To Report.Sections(I).ReportObjects.Count

' Loop through all the ReportObjects in each section
If Report.Sections(I).ReportObjects.Item(X).Kind = crFieldObject Or crTextObject Then
Report.Sections(I).ReportObjects.Item(X).ConditionFormula(crToolTipTextConditionFormulaType) = "Chr(9)"

End If

Next X

Next I

I get Error "Object doesn't support this property or method" on the line:
Report.Sections(I).ReportObjects.Item(X).ConditionFormula(crToolTipTextConditionFormulaType) = "Chr(9)"

If I type the line out myself (instead of copying and pasting), it auto completes until Item (it won't autocomplete the ConditionFormula)

Since this info comes directly from Crystal Reports and references the exact version that I'm using, I don't where else to look.

Does anyone have any suggestions?

Question by:vrivera22
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
  • 3
  • 2
  • 2
LVL 101

Expert Comment

ID: 12340394
Try it this way

Report.Sections(I).ReportObjects.Item(X).ConditionFormula(crToolTipTextConditionFormulaType) = Chr(9)


Author Comment

ID: 12340537
Thanks for the suggestion mlmcc, but I get the same error.
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.


Author Comment

ID: 12341361

Thanks again!  But I've already tried all 3 of those articles.

The first one is the same article that I got the example from.  I followed it word for word and even tried to tweak the code a bit to make it work, but to no avail.

The second and third describe how to disable the tooltips directly in Crystal Reports.  I haven't tried this yet, and I have no doubt that it would work.  The problem is that I have 5 different applications that use Crystal, each application can have as many as 50 or more reports, and each report has many, many textboxes and Fields.  

I really need to find a way to make the code in my original post work so that I don't have take the time to add the Chr(9) to every single field and textbox.  The code for viewing the reports is generic enough that I would only need that loop placed in the right location in my code and it would effectively strip the Tooltip from every field in the report that gets passed to it.

Again, thanks for your help!  

LVL 13

Accepted Solution

vidru earned 2000 total points
ID: 12341456
What version is your craxdrt.dll?  Your code works without any problems for me using version of craxdrt.dll.


Author Comment

ID: 12341563
Dave, Thank you!  That was the problem.  I had an old version of craxdrt.dll (v217) in my Winnt directory.  I followed the directions on the webpage (in my original post) to upgrade to the latest version.  It seems that the hotfix put the file into 'C:\Program Files\Seagate Software\Report Designer Component' but the one in Winnt was still registered.  All I had to do was register the newer dll and now it works!

mlmcc, thanks for your help as well.
LVL 13

Expert Comment

ID: 12341658
Cool... glad to help.


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

800 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