How to export excel equations to other types of expressions

Sometimes you may need to export Excel formulas to other formats in your code to meet your work needs, then Aspose.Cell library can meet your needs. The following content introduces some methods on how to export Excel formulas to other formats, I hope these methods will be helpful to you.

We have prepared sample code here to help you achieve your goals using Aspose.Cells. Necessary sample files are also provided.

Sample file:Sample.xlsx

Export equations as LaTeX expressions

If you want to export equations in Excel as LaTeX expressions, you can use the ToLaTeX() method.

The following sample code shows how to use the ToLaTeX() method and insert the generated results into HTML:

C#-To-LaTeX

Export equations as MathML expressions

If you want to export equations in Excel as MathML expressions, you can use the ToMathML() method.

The following sample code shows how to use the ToMathML() method and insert the generated results into HTML:

C#-To-MathML