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

Free Support Forum - aspose.com

Problem loading word-doc (Infinite-Loop)

Hi Aspose-Team,

we have a Problem when we try to load the attached file.

Steps to reproduce:

1. Load file

private Aspose.Words.Document LoadDoc(string FileName)
{
using (MemoryStream ms = new MemoryStream())
{

using (FileStream fileStream = File.Open(FileName, FileMode.Open, FileAccess.Read, FileShare.Read))
{
fileStream.CopyTo(ms);
fileStream.Close();
}

ms.Position = 0;

var result = new Aspose.Words.Document(ms);
return result;
}
}

2. Try to access PageCount

var PageCount = mDocument.BuiltInDocumentProperties.Pages;
if (PageCount == 0)
PageCount = mDocument.PageCount;

kind regards

Tom

Hi Tom,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.4.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-10185. Your request has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

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


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