I have and Excel sheet that has data with line breaks in cells. So, for example, the text
The quick brown fox
jumped over the lazy dog
would show up in one cell - let's say "A1" for simplicity's sake.
I am pulling this into a string
variable using Aspose with the following code
var book = new Workbook("MyPath.xls");
var cells = book.Worksheets[0].Cells;
object value1 = cells["A1"].Value;
string value2 = cells["A1"].StringValue;
This is not getting the line breaks so value1
and value2
look like The quick brown fox jumps over the lazy dog
.
Is there an Aspose way of getting text, including the line breaks/carriage return, out of a cell in Excel?