customization of printing table

Started by Thomas Mani, July 07, 2015, 02:34:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Thomas Mani

Can you help me to customise printing tables

Liviu Lalescu

Yes, but how?

You need to use a higher HTML level for the timetables and modify the CSS file as written there.

Liviu Lalescu

Volker Dirr can answer better and more detailed, but he will be on the computer in about 5 days. I hope he will answer.

anblado

You can open it directly in excel, and then customize it as you want. When you save it make sure to save as xls.

Thomas Mani

I don't want all the fields in the sheet.
I only need the subject in class time table
In teachers table  I only need class and subject
Present system I get all the teachers combined and classes combined

Thomas Mani

Thomas Mani

see the attached file of class and teacher timetable created

thomas Mani

Liviu Lalescu

Please firstly select HTML level of generated timetables to 3 or higher, then regenerate the timetable.

Please see the attached file. Line 76 hides subjects, line 120 hides students, line 124 hides teachers.

I think you will need to generate put in two parts the timetables for students and for teachers, and use two different CSS files.

Volker Dirr


Thomas Mani

It works.
Thank you all for the timely help

Thomas Mani

geokom

Hi everyone, when I go to print the program in print to file, the resulting pdf has very faint dividing lines and columns (grid). Last year when I was working on the application it was more intense. Is there a way to change it?

Liviu Lalescu


Volker Dirr

I guess you use a color printer/pdf now (instead of (laser) black and white). We didn't change the source.

If you use a web browser to print, then you can search in the css file this line:
border: 1px dashed silver;
Replace it by this:
border: 1px dashed black;
@Liviu:
Maybe we should do it in timetableexport.cpp line 2673 like this:
if(TIMETABLE_HTML_LEVEL!=7){
tos<<"border: 1px dashed silver;";
} else {
tos<<"border: 1px dashed black;";
}

Liviu Lalescu

Volker, he referred to printing from the interface. Also on my computer I see very faint lines.

I think we should print black even if the LEVEL is 7. Could you please send me the code for HTML and interface print?

Volker Dirr

The interface doesn't support coloring the dots. (At least old Qt versions. Maybe the new Qt support it. I didn't tried it with the latest Qt version. I will drive to a baptism now, so i can't test it carefully. I sent you the source by mail in a few seconds.)

geokom

For example this is a screenshot from a timetable pdf. Τhe grid of dividing lines appears faint.

https://drive.google.com/file/d/1Tt4lZRk4zWKyJ4JGt6wg98WCieGhfPca/view?usp=sharing