Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty cell with data-cell-type="number" causes workbook corruption #21

Open
olivierr91 opened this issue May 19, 2019 · 1 comment
Open

Comments

@olivierr91
Copy link

olivierr91 commented May 19, 2019

<td data-cell-type="number"></td>

Generates a corrupted Excel workbook:

image

And cell has value 'NaN'.

Expected behavior:

The workbook should be generated correctly, cell should be blank and with the correct number format set.

jsreport.Binary (dotnet) v2.4.0

@bjrmatos
Copy link
Collaborator

good catch. we have this PR waiting for merge, which should resolve this problem, however i'm not sure that passing an empty value will make the empty cell be formatted as number, anyway i will resolve that PR later and verify if we can do something to preserve the cell as number but with empty value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants