迁移到VS2005后问题设置数据源 [英] Problem setting datasource after migrating to VS2005
问题描述
我的解决方案始于VB6和CR9。我迁移到VS2003并使用CR9 RDC而不是VS2003版CR重写了报告和表单。数据源是包装数据集的所有类。现在我已经迁移到VS2005了。我已经碰壁了。
My solutionwas originall built in VB6 with CR9. I migrated to VS2003 and rewrote the reports and forms using the CR9 RDC rather than the VS2003 version of CR. The data sources were all classes wrapping datasets. Now I have migrated to VS2005 I have hit a wall.
转换我的解决方案后,每当执行到达设置报表数据源的行时,我都会收到错误消息
After converting my solution I get error messages whenever execution reaches the line that sets the report datasource
crReport.Database.SetDataSource(oSEFLocalData。 dsSEF.Printout)
这是一个类的实例,它包含一个包含名为Printout的表的数据集。错误消息是
检测到NonComVisibleBaseClass
消息:一个QueryInterface调用请求COM可见托管类'PrintoutDataTable'的默认IDispatch接口。但是,由于此类没有显式的默认接口,并且派生自非COM可见类'System.Data.DataTable',因此QueryInterface调用将失败。这样做是为了防止非COM可见基类受COM版本控制规则的约束。
这对任何人都意味着什么?其余的解决方案在绑定到表单时可以很好地包含相同的数据集。
任何建议都将受到赞赏。
< span style ="font-size:10pt; font-family:Arial">
推荐答案
我意识到这已有几个月了,但我遇到了类似的问题......你有没有想出解决方案?还是有其他人?我似乎无法在任何地方找到这个问题。
谢谢
I realize this is months old, but I'm having a similar problem...have you figured out a solution? or has anyone else? I can't seem to find this problem mentioned anywhere.
thanks
这篇关于迁移到VS2005后问题设置数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!