Free Support Forum - aspose.com

Copy word document in other word document loss style word table

with the instruction :
NodeImporter importer = new NodeImporter(srcDoc, dstDoc, ImportFormatMode.KeepSourceFormatting);

  NodeImporter importer = new NodeImporter(srcDoc, dstDoc, ImportFormatMode.KeepSourceFormatting);

  Node currentSession = (Section)originalStartNode.GetAncestor(NodeType.Section);

  Node cloneSess = currentSession.Clone(false);
  cloneSess = importer.ImportNode(cloneSess, true);
  ((Section)cloneSess).AppendChild(new Body(dstDoc));
  dstDoc.AppendChild(cloneSess);

used for copy word document in other document,

the copied word table loses the styles, particularly if there are lines highlighted alternately, the style of the lines is lost

@qwerty12z,

Please ZIP and attach your input Word document(s), Aspose.Words generated output document showing the undesired behavior and Console Application (source code without compilation errors) here for testing. We will investigate the issue on our end and provide you more information.