我在 ActiveReports 14 上遇到 SectionDocument 问题。我需要在应用程序之间共享文档(在activereports-14-serializa中描述了相同的问题),并且我遇到了序列化问题。有人可以描述如何使用 SerializableSectionDocument 类吗?
问问题
80 次
1 回答
0
SectionDocument 文档类是一个表示生成的报表输出的对象。
该文档可以与任何查看器控件一起使用,保存以供以后检索,甚至可以使用任何 ActiveReports 导出过滤器导出。
如果您需要一个可序列化的部分文档,那么您只需要使用派生类。请参考下面的代码片段:
C# 示例:
[Serializable]
public class SerializableSectionDocument : SectionDocument, ISerializable
{
public SerializableSectionDocument()
{
}
protected SerializableSectionDocument(SerializationInfo info, StreamingContext context) : base (info, context)
{
}
}
Visual Basic 示例:
<Serializable>
Public Class SerializableSectionDocument
Inherits SectionDocument
Implements ISerializable
Public Sub New()
End Sub
Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
MyBase.New(info, context)
End Sub
End Class
有关该类及其成员的更多信息,请参阅以下链接中的文档:
真挚地,
葡萄城支持团队
于 2020-08-05T14:25:59.540 回答