Hello,
I'm running CR 8.5 and using VB6.0 as front end application. I'm trying to pass a string from VB into a formula field in CR. The following is what i have so far.
Dim fldFormulaFields As CRAXDRT.FormulaFieldDefinitions
Dim fldFormulaField As CRAXDRT.FormulaFieldDefinition
Dim DeviceDescription as string
Report.Database.AddADOCommand DB2Connection, DB2Command
Set fldFormulaFields = Report.FormulaFields
Set fldFormulaField = fldFormulaFields.Item(1)
fldFormulaField.Text = DeviceDescription
My problem is everytime i run the program i get error saying the remaining text doesn't appear to be part of the formula. DeviceDescription is read from an INI file so it's gotta be a string. How do i pass this in into CR?
Please help anyone..
Thanks.
I'm running CR 8.5 and using VB6.0 as front end application. I'm trying to pass a string from VB into a formula field in CR. The following is what i have so far.
Dim fldFormulaFields As CRAXDRT.FormulaFieldDefinitions
Dim fldFormulaField As CRAXDRT.FormulaFieldDefinition
Dim DeviceDescription as string
Report.Database.AddADOCommand DB2Connection, DB2Command
Set fldFormulaFields = Report.FormulaFields
Set fldFormulaField = fldFormulaFields.Item(1)
fldFormulaField.Text = DeviceDescription
My problem is everytime i run the program i get error saying the remaining text doesn't appear to be part of the formula. DeviceDescription is read from an INI file so it's gotta be a string. How do i pass this in into CR?
Please help anyone..
Thanks.