senaite.impress icon indicating copy to clipboard operation
senaite.impress copied to clipboard

Column overflow with template MultiDefaultByColumn.pt

Open grulisco opened this issue 6 years ago • 2 comments

Steps to reproduce

  • Create a report over e.g. 10 ARs with same analyses services or profiles
  • Choose template MultiDefaultByColumn.pt

Current behavior

Result table shows only the first 5 ARs, the rest is lost.

Expected behavior

Results of all ARs should be displayed in separate table sections following the setting "Maximum columns per results email" in Bika Setup/Result Reports or create a new item in senaite publisher settings for this.

Screenshot (optional)

spectacle c18418

grulisco avatar Apr 23 '18 19:04 grulisco

Thanks for reporting @grulisco.

Unfortunately Weasyprint does not support table cell splitting on horizontal overflow.

  • https://github.com/Kozea/WeasyPrint/issues/96
  • https://github.com/Kozea/WeasyPrint/issues/36

This leaves us with the following options:

  • smaller font for the whole table, so that more columns fit
  • word wrapping inside cells (so the ID breaks into multiple lines)
  • using horizontal orientation (then 8 columns fit)
  • using a higher paper format, e.g. A3
  • dropping the table and use <div class='col'> boxes instead

The last point should break the next box below, but I doubt that it will be easy to make the columns fit aligned below each other or with the same width.

However, I'm not sure how readable each of these solutions will be in the end on the final report.

ramonski avatar Apr 24 '18 06:04 ramonski

This might solve the issue: https://github.com/Kozea/WeasyPrint/issues/666

ramonski avatar Aug 13 '18 07:08 ramonski