Any luck or did we stumble on to a bug and you are working on a fix?
stream.Position = 0;
Document newDoc = new Document(stream);
I was just told by support that UpdatePageLayout was an expensive operation and it shouldn’t be needed unless I called ‘save’ already on the document then manipulated it. Since I am not manipulating after calling Save, I was hoping I wouldn’t have to call that or first save, reopen, save the document simply to get it to Pdf. Is there something else that is triggering Aspose.Words to think it needs an UpdatePageLayout?
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("before updatefields call");
builder.Writeln("after updatefields call");
doc.Save(MyDir + @"15.6.0.docx");
doc.Save(MyDir + @“15.6.0.pdf”);
Thanks for the info. I see why your sample needs it, as you call builder.WriteLn(), but I was told simply removing nodes wouldn’t trigger it. Was that an incorrect statement? Basically, all my ‘data injection’ into the document was done, and I called section.Body.Range.UpdateFields(), then I ‘remove nodes’ if needed (basically removing flagged ‘bookmarks’ and all content between them, then I call Save().
As for the new FieldDocVariable class, is there a sample somewhere showing how that would be of benefit to me over the standard Field manipulation?
Thanks in advance,