水晶报表-序列化

2020-09-21 09:26发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)你好 ...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


你好

我正在使用CrystalDecisions 13.0.1 dll。 (由于许可问题而无法升级)

我正在使用 asp.net 4.7。

我想禁用系统中的会话。 因此,我无法在会话中保存" ReportDocument"对象,因此可以在回发时(使用分页等时)读取它。

所以我想序列化对象,以便将其存储在缓存服务器(couchbase)中

我看到了这个例子:

ISCDReportClientDocument ReportClientDocument = doc.ReportClientDocument;

CrystalDecisions.ReportAppServer.Utilities.Conversion转换器=新的CrystalDecisions.ReportAppServer.Utilities.Conversion();

serializedCrystalReportDocument = converter.ToString(ReportClientDocument);

但是我的CrystalDecisions.ReportAppServer dll版本中不存在"实用程序"命名空间。

我还有另一种方法来序列化/反序列化此对象吗?

谢谢

5条回答
小熊yu生菜
2020-09-21 09:28

感谢 Daniel Paulsen

我找到了名称空间,现在我在使用它时遇到了麻烦。

 ReportDocument doc = new ReportDocument();

         .....使用参数加载文件....

         ISCDReportClientDocument ReportClientDocument = doc.ReportClientDocument;
         CrystalDecisions.ReportAppServer.Utilities.Conversion转换器=新的CrystalDecisions.ReportAppServer.Utilities.Conversion();
         字符串serializedCrystalReportDocument = converter.ToString(ReportClientDocument);
 

serializedCrystalReportDocument为空。

还,我如何反序列化并加载它?

一周热门 更多>