FET Forum

FET Development => Report a Bug => Topic started by: Željko Vrabec on January 09, 2025, 08:40:32 PM

Title: different table widths in print (preview) dialog
Post by: Željko Vrabec on January 09, 2025, 08:40:32 PM
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!
Title: Re: different table widths in print (preview) dialog
Post by: Liviu Lalescu on January 09, 2025, 08:49:02 PM
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.
Title: Re: different table widths in print (preview) dialog
Post by: Volker Dirr on January 09, 2025, 08:57:40 PM
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.
Title: Re: different table widths in print (preview) dialog
Post by: Željko Vrabec on January 09, 2025, 09:05:55 PM
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!