Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Passing Formula to cr viewer

Posted on 2003-10-30
3
Medium Priority
?
423 Views
Last Modified: 2006-11-17
Hi

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

CR_Report.FormulaFields(8).Text


 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.

Thxs
0
Comment
Question by:jatinderbahl
  • 2
3 Comments
 
LVL 101

Accepted Solution

by:
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
CR_Report.FormulaFields("MyFormula").Text

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.

mlmcc
0
 

Author Comment

by:jatinderbahl
ID: 9662888
thnxs
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 9664066
Glad I could help

mlmcc
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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 lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline

885 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