Thank you for additional information. Unfortunately, at the
moment, you cannot create OMML formulas in the document using Aspose.Words. At
the moment, Aspose.Words simply preserves these objects upon processing the
Currently, the simplest way to insert formulas into the
document is including them as images. Another way is using EQ fields. Here is
code example (if you need to insert this upon mail merge, you can use
// Create empty document.
Document doc = new Document();
= new DocumentBuilder(doc);
// Insert some formula using EQ field.
// note: Aspsoe.Words does not update value of EQ
fields, so you should update fieds in your document to the formula.
// You can learn more about switches used in EQ fields
string eqFieldCode = @"EQ x=h\s\do8(0)-\r(h\s\do8(0)-\f(2;h))";
// Save output document
But this approach requires to build equation expressions,
which requires more effort. You can learn more about EQ fields here:
Also, in this case, you will have to update fields in the
document in MS Words to see your formulas.
Hope this helps.