QtXlsxWriter icon indicating copy to clipboard operation
QtXlsxWriter copied to clipboard

sheet->dimension().lastColumn() returns 0 in LibreOffice

Open qlands opened this issue 8 years ago • 0 comments

In a LibreOffice edited Excel file the function dimension().lastColumn() returns 0 even if the sheet has columns. I'm using the following code:

excelSheet = (QXlsx::Worksheet*)xlsx.sheet("choices");
qDebug() << excelSheet->dimension().lastColumn();  //Returns 0

You can test it with the file below with the sheet called "choices" Download test here

qlands avatar Jul 25 '16 01:07 qlands