0
私はいくつかの単語の文書をまとめていますが、最後は静的な内容なので、文書の最後に日付を追加する必要がありますが、powertoolのWmlDocumentオブジェクトはテキストを追加できません。テキストを追加するにはどうすればいいですか?OPEN XMLとPowertools
List <Source> sources = new List<Source>();
sources.Add(new Source(report, false));
sources.Add(new Source(sig, false));
WmlDocument doc = DocumentBuilder.BuildDocument(sources);
doc.MainDocumentPart.Add() // nothing here works.
doc.MainDocumentPart.Add(new Text("stuff")); // not working
doc.MainDocumentPart.Document -- NULL
doc.SaveAs("blah.docx") //creates doc.
私はファイルをディスクに保存しておきたくないです。