我的代碼片段2其中不同的工作 using (WordprocessingDocument wordDocument =
WordprocessingDocument.Create(@"D:\Tests\WordML\ML_Example.docx", WordprocessingDocumentType.Document))
{
// Add a main
我正在尋找一種方式來注入PresentationML中和/或DrawingML到使用Open XML SDK或只是System.IO.Packaging一個打開PowerPoint 2007/2010演示。有一篇關於doing this with Word的文章,但在該例中它使用Word的對象模型中的Range.XML例程,我無法在PowerPoint的對象模型中找到等價物。 我期待這樣做的原因是
我有兩個Word文檔(WordprocessingDocument),我想將第一個元素的內容替換爲第二個元素的內容。 這是我在做什麼現在: var docA = WordprocessingDocument.Open(docAPath, true);
var docB = WordprocessingDocument.Open(docBPath, true);
var containerEl