Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 2556

Help - Trying to set text property on FormulaFieldDefinition but get error

$
0
0

Hi I'am new to crystal reports. I inherited vb.net project that uses crystal reports. When trying to set the text property on the FormulaFieldDefinition object I get and error message "Error in formula name reserved characters cannot be used in formula name. When I debug the app I notice two things:

 

1.text property value is Nothing

2.The text that I'm trying to set is a literal ie.  "Company Name"

 

Here is a snippet of the code

 

form_field_defs = cur_report.rReportDocument.DataDefinition.FormulaFields

 

        For form_num = 0 To cur_report.uReport.iMaxFormulas - 1

            form_field_def = form_field_defs.Item(cur_report.uReport.sFormulas(cur_report.uReport.NAME_COL, form_num))

            form_field_def.Text = cur_report.uReport.sFormulas(cur_report.uReport.VALUE_COL, form_num)

        Next form_num

 

 

cur_report.uReport.sFormulas(cur_report.uReport.VALUE_COL, form_num) Returns a literal of the name of the "Company"


Please help


Thanks in advance


Kevin McNeal


Viewing all articles
Browse latest Browse all 2556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>