Can you help me to customise printing tables
Yes, but how?
You need to use a higher HTML level for the timetables and modify the CSS file as written there.
Volker Dirr can answer better and more detailed, but he will be on the computer in about 5 days. I hope he will answer.
You can open it directly in excel, and then customize it as you want. When you save it make sure to save as xls.
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
see the attached file of class and teacher timetable created
thomas Mani
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.
Please also read chapter "Style the html files with css"
http://www.timetabling.de/manual/FET-manual.en.html#id_45
It works.
Thank you all for the timely help
Thomas Mani
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?
Hello, geokom!
@Volker Dirr , please see this.
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;";
}
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?
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.)
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 (https://drive.google.com/file/d/1Tt4lZRk4zWKyJ4JGt6wg98WCieGhfPca/view?usp=sharing)
Yes, thank you, geokom, we know the problem! Volker, how could we add better lines between the cells (both in the HTML results and in Printing from the interface)?
by the code i sent you above:
border: 5px solid black;\n";
Of course 5 is too much. Just to see that it is working. I must say that i prefer default values. I don't like thicker lines. But you can decide. I sent you code in a minute.
You can add that to "table" and "th" and "td".
Volker, you are the person who decides this. If you disagree with thicker lines, we'll keep as it is now. Sorry, geokom. Maybe if more users want this change, we'll reconsider.