We are using v8.0 of Aspose.Words.
When our document has a table in it and at the bottom of the table contains the following field
{=SUM(ABOVE) \# "$#,##0.00;($#,##0.00)"}
when the document is streamed to disk/end user so that field is displayed as
!Undefined Bookmark, ABOVE
The functionallity is still there when we hit F9 - it will sum all the cells above it.
In version 6.5 it would keep the display as $0.00.
I've used the following code to reproduce it:
var streamFromManifest = typeof(SimpleDocumentAssemblerFixture).Assembly.GetManifestResourceStream(
"PRS.CMS.IntegrationTests.MergeEngine.Server." + "TestSumField.dotx");
// Open an existing document.
var doc = new Document(streamFromManifest);
// Fill the fields in the document with user data.
doc.MailMerge.Execute(
new[] { "FullName", "Company", "Address", "Address2", "City" },
new object[] { "James Bond", "MI5 Headquarters", "Milbank", "", "London" });
//doc.UpdateFields();
doc.Save("TestSumField - ok.doc", SaveFormat.Doc);
I've included 4 files in the files.zip attachment.
1 - TestSumField.dotx: that is the template used to generate the document
2 - TestSumField - ok -v6.5.doc: that is the output of the code above when using v6.5
3 - TestSumField - ok -v8.0.doc: that is the output of the code above when using v8.0
4 - TestSumField - ok -v8.0-update fields.doc: that is the output of the code above when using v8.0 and uncommenting the "//doc.UpdateFields" line.