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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to pass a string into CR and print it out?

Status
Not open for further replies.

ttest

Programmer
Jun 28, 2000
38
US
i need to pass a string from VB into CR and have that string print out along with the report title. i'm using CR 4.6 OCX. i can't find any properties to do that. can anyone help me?
 
You can use the Formulas property. Set up a formula in your Crystal report. For example, name the formula PrintString and make it look like:

"test print"

Then, in your VB app, assign the actual value that you want to the formula:

Report1.Formula(0) = "PrintString=""Print this info"""

You can place the formula anywhere on the report and it will print whatever the VB app has assigned it.
 
hi

this thread was of great help, and solved the problem which
wasted my whole day.

thanks juls.

thanks Almighty.

bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top