How to rotate text in Excel spreadsheet cell using

2019-02-28 18:47发布

I'm trying to finish little application which is creating MS Excel spreadsheet filled with some data taken from a database. I got stucked with few things. One of these is how to rotate a text in a spreadsheet cell. I was trying to do it in that way:

SpreadsheetStyle style = SpreadsheetReader.GetDefaultStyle(spreadSheet);
    style.AddAlignment(new Alignment() {
       TextRotation = 90
    });

but of course it didn't work. I'm using WorksheetWriter class to build excel doc.

I couldn't find anything helpful in Google so I hope to find some help here :)

0条回答
登录 后发表回答