Hi
when i try to append a document to another document get this error on UpdatePageLayout() method call :
Unable to cast object of type ‘Aspose.Words.Drawing.GroupShape’ to type ‘Aspose.Words.Drawing.Shape’.
Code:
var docToAppend = new Document("99.doc");
var destDoc = new Document();
destDoc.AppendDocument(docToAppend, ImportFormatMode.KeepSourceFormatting);
destDoc.UpdatePageLayout();
@majidzare
Thanks for your inquiry. We have tested the scenario and noticed the reported exception. We have logged a ticket WORDSNET-16014 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.
We are sorry for the inconvenience.
@majidzare,
The issues you have found earlier have been fixed in this Aspose.Words for .NET 17.11 update and this Aspose.Words for Java 17.11 update.
Please also check the following articles: