Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crystl32.ocx pass formula to report 1

Status
Not open for further replies.

RBSTR

Programmer
Nov 10, 2005
71
GB
Hi
I have received an enquiry from a custoemr using an old VB6 project. The VB6 project uses crystl32.ocx (Crystal Report Control).
I want to pass some text into a report when called by the VB6 project.
I thought I would add a formula to the report then change it's text at run time in my VB code.
I thought I would try and set the Formulas(x) to the text I wish to pass but it does not seem to work.
If I loop through Formulas() in the code none of them seem to return anything, though there are formulas in the report with values set.
Any ideas?
 
It is possible to set a formula text via the API but it is easier to pass values into the report via parameters. Consider that approach instead.

hth,
- Ido

view, export, burst, email, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top