Colspan issue (wrong width)
Hello gyus, I just wanted to make colspan, but width of the 1st column has changed. See playground here for more details:
Thanks in advance!
hi! i would say that this is just a case that the conversion library is not handling cell widths in the expected way, like normal browsers do. so i will open an issue to investigate it more. thanks for the issue report
Thank you for your answer, let me know about your results. Thaks in advance!
Linking here the covering github issue
issue fixed in latest release of jsreport-html-to-xlsx. To include the fix in your project just install new version of jsreport-html-to-xlsx ->
npm install firstname.lastname@example.org --save
Could you update version of jsreport-html-to-xlsx to 1.4.4 into jsreport packege as well? Thanks.
Also I have the same issue with rowspan. Could you fix it as well?
Did the fix with colspan work for you?
We update jsreport in chunks. Not for every single update in a dependency.
We want to make sure the jsreport release is always stable and it takes us some time to test the whole package before releasing.
However we have already quite some updates accumulated so we will prepare the release soon.
You should be able to use jsreport and the new jsreport-html-to-xlsx together until then.
Yes, fix with colspan work for me. Thanks.
Thank you for your answer. I will wait new release.
Thank you for confirmation. @bjrmatos will take a look also on the rowspan issue you mentioned.
@Zhenya-Yurko Could you please show us what issues you have with rowspan? Show on image the expected behavior and the current one and give us a playground link? Thank you.
@jan_blaha , I have created example. Please review.
@Zhenya-Yurko thanks! i will take a look
@Zhenya-Yurko Could you please verify that the rowspan issue is fixed for you? Just that we know we are good to go to release the full jsreport afterwards.
I have checked. Works for me. Thanks.
What happens with the colspan to perform dynamic tables ?, rowspan works fine but when testing with colspan it gives error
<td colspan="2">2 columnas?</td>
Error occured - Error during rendering report: "Cannot set property 'v' of undefined"
Stak - TypeError: "Cannot set property 'v' of undefined"
at Sheet.set (/app/node_modules/msexcel-builder-extended/lib/msexcel-builder.js:333:36)
at tableToXlsx (/app/node_modules/html-to-xlsx/lib/conversion.js:127:20)
at icb (/app/node_modules/html-to-xlsx/lib/conversion.js:53:13)
at ChildProcess.exithandler (child_process.js:195:7)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:891:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
it works for me in latest version 1.9.1, are you sure that you're using latest version?