Solved

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

Posted on 2004-10-18
7
927 Views
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:
http://support.businessobjects.com/library/kbase/articles/c2012262.asp

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

[code]
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
[/code]

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)
Report.Sections(i).ReportObjects.Item(X)


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?







0
Comment
Question by:vrivera22
  • 3
  • 2
  • 2
7 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Try it this way

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

mlmcc
0
 

Author Comment

by:vrivera22
Comment Utility
Thanks for the suggestion mlmcc, but I get the same error.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:vrivera22
Comment Utility

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!  





0
 
LVL 13

Accepted Solution

by:
vidru earned 500 total points
Comment Utility
What version is your craxdrt.dll?  Your code works without any problems for me using version 8.5.0.674 of craxdrt.dll.

-dave
0
 

Author Comment

by:vrivera22
Comment Utility
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.
0
 
LVL 13

Expert Comment

by:vidru
Comment Utility
Cool... glad to help.

-dave
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

11 Experts available now in Live!

Get 1:1 Help Now