We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception on UpdatePageLayout

Hello,

We have a situation with one Word document processed in our application throwing the following exception when calling UpdatePageLayout.
Unfortunately trying to save the document on disk in order to send it to you with a demo is not possible because when saving the document to disk the issue is somehow resolved and no exception is thrown when calling UpdatePageLayout. Is possible to locate/fix the issue using only this exception ?

at ​ .(StyleCollection )
at ​ .(DocumentBase )
at ​ .VisitDocumentEnd(Document )
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at ​ .(DocumentBase , )
at .(DocumentBase )
at .VisitDocumentEnd(Document )
at Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor)
at .( )
at .(Document , )
at Aspose.Words.Document.(Boolean )
at .( )
at Aspose.Words.Rendering.ShapeRenderer…ctor(ShapeBase shape)
at .( , RectangleF , DocumentBase )
at ​ .( , , , , , Single , , , Boolean )
at .(Single , Single , Int32 , , , )
at .( [] , )
at . ()
at . ​()
at . ​()
at . ​()
at .( )
at .()
at .()
at .()
at .(ShapeBase , )
at . ​( )
at .(ShapeBase )
at .(ShapeBase , )
at .( , Boolean )
at .( )
at .( )
at .()
at . ​()
at . ​ ()
at .​ ​ ()
at .()
at .( )
at .( )
at .( , Int32 )
at .( , Int32 , Boolean )
at .()
at .( , Int32 , Boolean , Boolean )
at . ()
at .( , Int32 )
at .( )
at .()
at .( )
at .(Boolean )
at .(Boolean )
at . ()
at .(Document , )
at Aspose.Words.Document.UpdatePageLayout()

Regards,
Aurelian Iordache
Software Developer
IBM Romania

Hi Aurelian,

Thanks for your inquiry.

Unfortunately, it is difficult to say what the problem is without the input document and simplified application. We need your document and simple project to reproduce the problem. As soon as you get these pieces of information to us we'll start our investigation into your issue.

Hi Tahir,

We tried to simplify and to extract some code from our application but unfortunately we cannot reproduce the issue with a simplified application, we should provide the entire processing module of our application in order to reproduce the issue and we don’t have approval to do this.
I attached here the input document, maybe analyzing this document and the exception we sent previous will give you some idea about what’s going on. The issue appears after we are importing the section from this document into another document in our application and in the exception i see it’s about ShapeRenderer so maybe is something different with this chart ( as long as we don’t have issues with other documents containing charts) ?

Thank you,
Aurelian Iordache
Software Developer
IBM Romania

Hi Aurelian,

Thanks for sharing the document. We have done some tests with your document e.g. convert document to Pdf, Doc, image file format and call Shape.GetShapeRenderer, Document.UpdatePageLayout etc. We also used the code example shared in [this forum thread](https://forum.aspose.com/t/36475) and have not faced any exception. Perhaps, after the fix of WORDSNET-13377 you will not face this exception.

Please let us know if you have any more queries.

Hi,

After upgrading to Aspose.Words v.16.3.0.0 we succeeded in reproducing the exception and we are able to send demo code and file (the issue is not corrected when saving the Word content to disk).
For reproducing the issue please use the attached Word file and the following code:

var document = new Document(“tmp.docx”);
document.UpdatePageLayout();


InternalId: 27496.

Regards,
Aurelian Iordache
Software Developer
IBM Romania

Hi Aurelian,

Thanks for sharing the document. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13431. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-13431) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.