We don't have a usermodel API for setting this property. The following
low-level trick should work though:

        XSSFSheet sheet = workbook.createSheet();
        
sheet.getCTWorksheet().getSheetViews().getSheetViewArray(0).setRightToLeft(true);

Yegor

On Thu, Jul 28, 2011 at 11:17 AM, Michael Elman <[email protected]> wrote:
> Hi,
>
> I'm trying to create a sheet in the Excel file using Apache POI.
>
> Since it's Excel 2007, I'm using XSSF and I'm looking a for way to make a
> sheet right-to-left aligned.
>
> In HSSF there is a method
> `org.apache.poi.hssf.usermodel.HSSFSheet.setRightToLeft(boolean)`, but I
> cannot find it in `org.apache.poi.xssf.usermodel.XSSFSheet`.
>
> I'm using Apache POI 3.7
>
> Thanks,
> Michael
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to