DATA AHEAD toolkit support Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

XLR8: Read current sheet (format XLSX only) removes background colors

Dear Dataahead,

In XLSX format only, the function Read current sheet removes BGcolors in the sheet.

Excel gives this type of error message:

Bug BGcolor.png

Included:

Test 6.xlsx is original file.

lvtemporay_202374.xlsx is corrupted file.

XLR8 test6 BGcolor.vi is my test VI.

Best regards,

Daniel

Download All
0 Kudos
Message 1 of 3
(4,953 Views)

This workaround make the same bug:

ReadAll.png

0 Kudos
Message 2 of 3
(3,582 Views)

Daniel,

the reading does not break anything. It's the saving. Whenever XLR8 saves a file, it parses all information on cells, styles, fonts, etc and creates new XML files to then build the new XLSX file.

The underlying error in this case are issues when parsing the font family. We will investigate why this should ever break anything. When you investigate in the error message you provided, you will find that it fails at the closing tag for the "font family" entry.

A workaround that did the trick the for me: Open the original file in Excel and re-apply the "Arial" font to the cells. Save the file. After that the VI did no longer modify the Excel file.

Cheers

Peter

CLD | Alliance Partner | Web data storage and visualization | daq.io
0 Kudos
Message 3 of 3
(3,582 Views)