different table widths in print (preview) dialog

Started by Željko Vrabec, January 09, 2025, 08:40:32 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Željko Vrabec

Hi guys!

First of all thanks for the great software. I love it.

I don't think it's really a bug but it would be really nice if tables in print (preview) dialog could be all the same width.


Best regards!

Liviu Lalescu

Hello, cracker_vic,

Thank you for the appreciation! :)

Thank you for the report! It is @Volker Dirr who should answer this. Meanwhile, I will add your suggestion in the TODO.

Volker Dirr

It is not a bug. Web browsers shrink HTML tables automatically. So they always try to use as less space as possible.

You can set the same width in fact in Web browsers (so if you export and modify the css file). But that has got big problems:
If you select a too small width for the cells, then you can't read every cell.
If you select a larger width, then the table can be suddenly much bigger, there will be a lot of white space and in many cases the tables are even so large, that they won't fit on the paper.

Just try it by exporting a html table, modify the css (search "width" in the css file) and print it. In most cases it will look bad.

Sadly in FET it is not possible to do that in the preview. The Qt print engine doesn't support it.
It is possible by adding a whole web engine. Only the web engine is ~140MB large and it is much slower if you want to print. I done that in TiTiTo. I must admit that I don't like that very much and might revert it. But you can try it if you want. Just download TiTiTo, import your FET file and print the tables. You can setup the width in the print dialog.

Željko Vrabec

Thank you very much for a reply. I've done this already in html by customizing css. I didn't know about qt rendering engine limitations. Thanks anyway!