We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Read Equation From word document In C#

HI I am using this code,
Its reading images from word but not Formula i.e equation in word document.

Document doc = new Document(@“D:\Word Reading Sample Proj\pract\pract\WordDoc\EquationDoc.docx”);
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
int imageIndex = 0;
foreach (Shape shape in shapes)
if (shape.HasImage)
string imageFileName = string.Format(
“Image.ExportImages.{0} Out{1}”, imageIndex, FileFormatUtil.ImageTypeToExtension(shape.ImageData.ImageType));
shape.ImageData.Save(Server.MapPath(@"~\Images"+ imageFileName));

Bellow is snap show of equation

Hi there,

Thanks for your inquiry. Could you please attach your input Word document here for testing? We will investigate the issue on our side and provide you more information.

hi i am giving u sample doc.which will have image as well as equation.whole document read as same as i sent you.If its possible using aspose let me know.

please find attachment