Hello. Is it possible to add table from .docx-document to another one?
For example I have a document (9.0 KB) and want to add (1) all of it content or (2) just the table to the another one (9.0 KB) with Web Document Builder from ONLYOFFICE Docs Community Edition (v 7.4) and .docbuilder-file with next content:
builder.OpenFile("link_to_doc_with_table");
var oDocument = Api.GetDocument();
// https://api.onlyoffice.com/docbuilder/howitworks/globalvariable
GlobalVariable["oSth"] = oDocument.GetElement(1);
builder.CloseFile();
builder.OpenFile("link_to_header");
var oDocument = Api.GetDocument();
oDocument.Push(GlobalVariable["oSth"]);
builder.SaveFile("docx", "tost.docx");
builder.CloseFile();