Problem with the Cell.Characters


#1

Hello! I have a problem.
I can’t call Cell.Characters method twise for one Cell:

Cell c=sheet.Cells[“a1”];
string str=“lalalalalalalalala”;
c.PutValue(str);
Characters ch=c.Characters(0,2);
ch.Font.IsSuperscript=true;
ch=c.Characters(4,2); // <-- there Exception thrown!
ch.Font.IsSuperscript=true;

What’s wrong?

Thank you.


#2

Oh! It doesn’t works for other cells too:

Cell c=sheet.Cells[“a1”];
string str=“lalalalalalalalala”;
c.PutValue(str);
Characters ch=c.Characters(0,2);
ch.Font.IsSuperscript=true;
Cell b=sheet.Cell[c.Row,c.Column+1]; //it’s other cell!
Characters h=b.Characters(4,2); // <-- there Exception thrown!
h.Font.IsSuperscript=true;

What’s wrong?

Thank you.


#3

sorry, last post it’s my mistake. I haven’t put value in Cell Smile


#4

Thank you for help! )))
I’ve had old version of Aspose.Excel, now it’s works well!