【发布时间】:2011-10-20 16:49:27
【问题描述】:
我想使用 XML 序列化来序列化 ReportDocument,但没有成功,这是我的代码:
public String serialiser (ReportDocument rd)
{
StringWriter sw= new StringWriter();
System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(ReportDocument));
xs.Serialize(sw, rd);
return sw.ToString();
}
注意:CrystalDecisions.CrystalReports.Engine.ReportDocument。
我收到以下错误:
An error occurred during the reflection of the type 'CrystalDecisions.CrystalReports.Engine.ReportDocument'.
我怎么能序列化它?!
【问题讨论】:
标签: c# .net serialization crystal-reports xml-serialization