Unreadable content in Excel file generated with EPPlus

前端 未结 7 931
谎友^
谎友^ 2021-01-04 02:57

I\'m having a little problem when I generate an Excel file from a template, using the EPPlus library. The file has a first spreadsheet that contains data that is used for po

7条回答
  •  抹茶落季
    2021-01-04 03:27

    I ran into this when I had a bug that added an extra column delimiter after each row:

    head1{tab}head2{tab}
    col11{tab}col21{tab}
    col22{tab}col22{tab}
    

    That extra tab after the last column broke the resulting Excel spreadsheet in this same way, and removing it fixed the problem. Note I'm using the LoadFromText to load the whole sheet in one go from text data. This may not be the OP's issue, but maybe future searchers will find this helpful.

提交回复
热议问题