无法在 Gembox.Document 中的特定段落中显示从 MemoryStream 加载的内容

问题描述 投票:0回答:1
c# memorystream gembox-document
1个回答
0
投票

试试这个:

document.Sections[0].Blocks[1].Content.End.InsertRange(financialAnalysisDocument.Content);

但是,由于

financialAnalysisDocument.Content
是整个
ContentRange
DocumentModel
,这将导致在“第 2 段”和“第 4 段”之间插入
Section
元素。

我不确定这是否是您想要的,所以也许这更适合您的需求:

document.Sections[0].Blocks[1].Content.End.InsertRange(
    financialAnalysisDocument.Sections[0].Blocks.Content);
© www.soinside.com 2019 - 2024. All rights reserved.