Question about printing layout

Started by satellite2, November 29, 2018, 08:08:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

satellite2

Hello, I have a question about the printing feature. When I try to print a student group's timetable with days_horizontal feature, first day column (Monday) shrinks too much although there is enough space at the right side of the layout. Other day columns seem normal. Is there a way to solve this issue?

Volker Dirr

All tables always shrink automaticly.

I coded the printing feature by using HTML. Sadly Qt doesn't support the "width" nor the "minimum-width" feature. So I can't enlarge it easy in the interface. We must sadly wait until Qt support that feature.

There are currently 2 workarounds possible:
Workaround 1:
Export as html file. Open the css filewith an editor. search for this line:
th.xAxis {
/* width: 8em; */
}


Modifiy it into this: (maybe with a greater number)
th.xAxis {
width: 8em;
}


Now you can print it with a webbroser (Firefox, Chrome, ...)


Workaround 2:
Rename your hour names. Maybe call it "___Monday___" instead of "Monday". So it will be larger. You can't rename it to "    Monday    " since that will automaticly shrink.


Don't forget that the workarounds have got disadvanatges: The tables might be much too large and might not fit on a single page anymore.

satellite2

Quote from: Volker Dirr on November 29, 2018, 06:11:28 PM
All tables always shrink automaticly.

I coded the printing feature by using HTML. Sadly Qt doesn't support the "width" nor the "minimum-width" feature. So I can't enlarge it easy in the interface. We must sadly wait until Qt support that feature.

There are currently 2 workarounds possible:
Workaround 1:
Export as html file. Open the css filewith an editor. search for this line:
th.xAxis {
/* width: 8em; */
}


Modifiy it into this: (maybe with a greater number)
th.xAxis {
width: 8em;
}


Now you can print it with a webbroser (Firefox, Chrome, ...)


Workaround 2:
Rename your hour names. Maybe call it "___Monday___" instead of "Monday". So it will be larger. You can't rename it to "    Monday    " since that will automaticly shrink.


Don't forget that the workarounds have got disadvanatges: The tables might be much too large and might not fit on a single page anymore.

Thank you very much Volker, I will try your suggestions.