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

Free Support Forum - aspose.com

New version of aspose cell does not interpret '\t' in textbox

We have been using aspose cell version.

We were inserting textboxes in excel sheet with content “\t hello” and \t was interpreted as tab character,

But with aspose cell version, \t is not interpreted as tab character and textbax displays only “hello” without a tab (eg " hello").



Thanks for your posting and using Aspose.Cells.

We have tested your issue with the latest version: Aspose.Cells
for .NET v7.4.3.5
with the following code and found it is working fine. We have attached the output file generated by this code for your reference.


String containingText = “\thello”;

Workbook book = new Workbook(FileFormatType.Xlsx);

Worksheet sheet = book.Worksheets[0];

Aspose.Cells.Drawing.TextBox textboxInBack = sheet.Shapes.AddTextBox(1, 0, 1, 0, 50, 100);

textboxInBack.Text = containingText;

textboxInBack.Font.IsBold = true;

textboxInBack.TextFrame.AutoSize = true;