Page tree
Skip to end of metadata
Go to start of metadata

!MISSING PHRASE 'Show All'! !MISSING PHRASE 'Hide All'!
提供C1MultiDocument 组件的主要目的是处理由于内存限制而无法被正常创建/导出/打印的巨大文档。有关于的文档的大小和数量没有限制。但是您可能需要使用磁盘存储而不是内存(默认),详见SetStorage 方法。一个多重文档存在一个限制,按照具体应用的不同,这个限制可能会也可能不会非常重要:它不支持您访问其中包含的
C1PrintDocuments 的对象模型。换句话说,您可以用下面的代码:
Visual Basic

Visual Basic

Dim mdoc As New C1MultiDocument() mdoc.Items.Add(C1PrintDocument.FromFile("file1.c1dx")) mdoc.Items.Add(C1PrintDocument.FromFile("file2.c1dx")) mdoc.Items.Add(C1PrintDocument.FromFile("file3.c1dx"))

C#

C#

C1MultiDocument mdoc = new C1MultiDocument(); mdoc.Items.Add(C1PrintDocument.FromFile("file1.c1dx")); mdoc.Items.Add(C1PrintDocument.FromFile("file2.c1dx")); mdoc.Items.Add(C1PrintDocument.FromFile("file3.c1dx"));

但是您不能再添加如下的内容:
Visual Basic

Visual Basic

Dim doc As C1PrintDocument = mdoc.Items(1)

C#

C#

C1PrintDocument doc = mdoc.Items[1];

如果这种限制对于特定的应用程序不存在问题,甚至您可以使用C1MultiDocument组件"模块化"您的应用程序,即使不存在任何的内存使用问题。

  • No labels