Using Aspose.Words 17.2.0.0
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();
}
}
}