如何将ListView内容导出到Crystal Report 8.5 [英] how to export listview contents to crystal report 8.5

查看:61
本文介绍了如何将ListView内容导出到Crystal Report 8.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim comp1, item1 as string
report1.EnableParameterPrompting = False
For i = 1 To lvwDisplayCompStok.ListItems.Count
Set codeitem = lvwDisplayCompStok.ListItems(i)
comp = codeitem.Text
item = codeitem.SubItems(1)
report1.ParameterFields.GetItemByName("comp").AddCurrentValue comp1
report1.ParameterFields.GetItemByName("item").AddCurrentValue item1
Next i



上面的编码给出了如下错误消息:

运行时错误"2147189553(80047ccf)":
您要添加的值/范围已经存在.

我在哪里犯错!还是不正确?

请按照适当的指南进行操作

谢谢



Above coding gives an error message as follows :

Run-time error ‘2147189553(80047ccf)’:
The value/range you are adding has already existed.

Where I am making mistake! or is it incorrect?

Please HELP with proper guidelines

Thanks

推荐答案

在Crystal Reports中,如果您更改数据库专家中的db,存储过程等,则报告中的字段将消失.如果您忘记了一个或(由于某种原因)不从字段列表中读取该字段,则会收到此错误"2147189553(80047ccf)".
In Crystal Reports if you change a db, stored procedure, etc in database expert the fields in the report disappear. If you forget one or (for some reason) don''t read the field from the fields list you will get this error ‘2147189553(80047ccf)’.


这篇关于如何将ListView内容导出到Crystal Report 8.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆