| 文章: |
摘要:Crystal Reports是目前国内应用得比较普及的报表工具。该工具随Visual Basic和Visual C++提供给用户,许多数据库软件设计者都把它作为报表设计的首选工具。Crystal Reports的基本功能很强大,但是用户对于报表内容和格式的要求往往更高,特别是对于不同条件下的累计,这时候就需要利用Crystal Reports的公式功能来增强报表功能。
链接:
美国镜象:http://www.zealsoft.com/articles/reports.html
ChinaNet镜象:http://china.zealsoft.com/articles/reports.html
李飞的意见:
6、在Visual Basic中修改公式
如果使用公式@VarC:
stringvar c;
c
在VB中用:
DIM AAA as string
AAA="PPPPP"
Report.FormulaFields((FindField"@VarC")).Text = AAA
就会出现错误:
"the remaing text doesn't appear to be part of the formula "
但使用
NumberVar c;
c
就行。请帮助解决,多谢!
答:问题在于对于Crystal Reports来说,PPPPP并不是一个合法的字符串。你应该把AAA="PPPPP"改为:AAA="'PPPPP'"
文章来源:李海文选。
附加关键字:编程, 源程序, programming, source code, Visual Basic, VB, 打印与报表, print, report crystal report, active report。
|