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

Free Support Forum - aspose.com

Horizontal textOrientation do not work in Excel

When I try the following code the text in the Downward cell do not get downward in Exel

Dim doc As New Aspose.Words.Document()
Dim builder As New Aspose.Words.DocumentBuilder(doc)

builder.RowFormat.HeightRule = Aspose.Words.HeightRule.Auto
builder.RowFormat.AllowAutoFit = False

builder.CellFormat.Orientation = Aspose.Words.TextOrientation.Horizontal

builder.Write("Horizontal Horizontal Horizontal Horizontal Horizontal")

builder.CellFormat.Orientation = Aspose.Words.TextOrientation.Downward


doc.Save("out.xls", Aspose.Words.SaveFormat.Mhtml)

Whats wrong with my code?



<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. First of all, you should note, Apose.Words is oriented to work with word document, like DOC, DOCX, RTF, WML etc. Also HTML (MHTML) does not support text direction in table cells.

If you need to generate Excel documents, you should try using Aspose.Cells. Please see the following link to learn more:


Best regards.

Is it in any way be possible to add the “mso-rotate: 90” style tag to the TD when rendered to html?


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for your suggestion. We will consider adding such option in one of future versions.

Best regards,