I want to add one office document to another. Until now I had to add a word document to another word document. This was very easy to implement via OpenXmlPowerTools.
But now I have to add a xls document into this word document. What can I do?
Important is to keep the xls style.
List<Source> sources = new List<Source>()
{
new Source(new WmlDocument(source1), true),
new Source(new WmlDocument(source2), false),
};
DocumentBuilder.BuildDocument(sources, pathDoc);
I think here’s your answer: “Programmatically embedding an Excel spreadsheet into a Word document, Learn how to leverage the Open XML SDK to programmatically embed an Excel spreadsheet into a Word document”