When the following code executes UpdatePageLayout( ), it never returns from that method call. Is this something that’s fixed in a future version?
The Word doc used in the sample is zipped and attached. AhrnDoc.zip (152.8 KB)
using Aspose.Words;
namespace TestAspose
{
public class Program
{
static void Main(string[] args)
{
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(“Aspose.Words.lic”);
var loadOptions = new Aspose.Words.LoadOptions();
loadOptions.LoadFormat = LoadFormat.Auto;
Document myDoc = null;
myDoc = new Document("c:\\AhrnDoc.docx", loadOptions);
myDoc.UpdatePageLayout();
}
}
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-19634. You will be notified via this forum thread once this issue is resolved.
We have good news for you i.e. WORDSNET-19634 has now been resolved. The fix of this issue will be included in the 20.1 (next version) of Aspose.Words. We will inform you via this thread as soon as the next version containing the fix of your issue will be released at the start of next month.