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

Free Support Forum - aspose.com

Need to set the worksheet "Right-to-Left"

Hi ;


I need to set the worksheet style to “Right-to-Left”.
How can i work it out !?

thanks.


Hi Ehssan,

Thanks for your posting and using Aspose.Cells.

Please try the Worksheet.DisplayRightToLeft property and set it true. It should fulfill your needs.

Please see the following sample code. I have attached the output xlsx file generated by it for your reference.

C#


Workbook workbook = new Workbook();


Worksheet worksheet = workbook.Worksheets[0];

worksheet.DisplayRightToLeft = true;


workbook.Save(“output.xlsx”);


Thank you so much ! :slight_smile: