Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Passing Formula to cr viewer

Posted on 2003-10-30
Medium Priority
Last Modified: 2006-11-17

 How can i pass multiple formulas to cr viewer through vb.? i don't want to use this


 because the sequence is hard to remenber.

Instead of 8 is it possible to specify formula name like it can be done in Cr activex control.

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

Accepted Solution

mlmcc earned 90 total points
ID: 9650384
Yes and no.

The names are available but I don't think they can be used as an array index like

You can do something like

for i = 1 to CR_Report.FormulaFields.count
    if (UCase(CR_Report.FormulaFields.Name(i)) = UCase(FormualaToPassName)) then
      CR_Report.FormulaFields(i).Text = NewFormulaString
   end if
Next i

A little slower but it works well.  I pass all my information to reports in a similar manner.


Author Comment

ID: 9662888
LVL 101

Expert Comment

ID: 9664066
Glad I could help


Featured Post

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.

Question has a verified solution.

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

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
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:…

688 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