【发布时间】:2010-01-15 15:09:20
【问题描述】:
我正在尝试序列化一个数据结构并通过参数将其传递给另一个报表,这行代码:
Dim s As New System.Xml.Serialization.XmlSerializer(GetType(System.Collections.HashTable))
产生这个错误:
An error occurred during local report processing.
The definition of the report '/myReport' is invalid.
There is an error on line 22 of custom code: [BC30002] Type 'System.Xml.Serialization.XmlSerializer' is not defined.
我该如何解决这个问题?我已经能够在其他代码行中使用完全定义的 .NET 类,包括以下代码:
Dim outStream As New System.IO.StringWriter()
和
Private colorMapping As New System.Collections.Hashtable()
任何想法为什么这会失败?这是 SQL Server Reporting Services 2005。
【问题讨论】:
-
我不熟悉报告服务,但我猜您需要在项目中添加对“System.Xml”的引用
-
当然!谢谢 - 如果您将其创建为答案,我会接受。
标签: .net vb.net reporting-services reportingservices-2005