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.InsertCell()
builder.CellFormat.Orientation = Aspose.Words.TextOrientation.Horizontal

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

builder.CellFormat.Orientation = Aspose.Words.TextOrientation.Downward
builder.Write("Downward")

builder.EndRow()
builder.EndTable()

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

Whats wrong with my code?
/Arion

Hi

Thanks for your request. First of all, you should note, Aspose.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:
https://docs.aspose.com/cells/net/product-overview/
Best regards.

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

Hi

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