FET Forum

FET Support (English) => General Stuff => Topic started by: Thomas Mani on July 07, 2015, 02:34:37 AM

Title: customization of printing table
Post by: Thomas Mani on July 07, 2015, 02:34:37 AM
Can you help me to customise printing tables
Title: Re: customization of printing table
Post by: Liviu Lalescu on July 07, 2015, 06:14:23 AM
Yes, but how?

You need to use a higher HTML level for the timetables and modify the CSS file as written there.
Title: Re: customization of printing table
Post by: Liviu Lalescu on July 07, 2015, 05:49:23 PM
Volker Dirr can answer better and more detailed, but he will be on the computer in about 5 days. I hope he will answer.
Title: Re: customization of printing table
Post by: anblado on July 07, 2015, 09:31:11 PM
You can open it directly in excel, and then customize it as you want. When you save it make sure to save as xls.
Title: Re: customization of printing table
Post by: Thomas Mani on July 12, 2015, 05:21:31 AM
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
Title: Re: customization of printing table
Post by: Thomas Mani on July 12, 2015, 05:29:38 AM
see the attached file of class and teacher timetable created

thomas Mani
Title: Re: customization of printing table
Post by: Liviu Lalescu on July 12, 2015, 10:19:29 AM
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.
Title: Re: customization of printing table
Post by: Volker Dirr on July 12, 2015, 08:57:40 PM
Please also read chapter "Style the html files with css"
http://www.timetabling.de/manual/FET-manual.en.html#id_45
Title: Re: customization of printing table
Post by: Thomas Mani on July 16, 2015, 05:46:38 PM
It works.
Thank you all for the timely help

Thomas Mani
Title: Re: customization of printing table
Post by: geokom on September 14, 2024, 06:38:36 PM
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?
Title: Re: customization of printing table
Post by: Liviu Lalescu on September 14, 2024, 07:17:10 PM
Hello, geokom!  @Volker Dirr , please see this.
Title: Re: customization of printing table
Post by: Volker Dirr on September 15, 2024, 09:14:45 AM
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;";
}
Title: Re: customization of printing table
Post by: Liviu Lalescu on September 15, 2024, 11:01:30 AM
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?
Title: Re: customization of printing table
Post by: Volker Dirr on September 15, 2024, 11:36:40 AM
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.)
Title: Re: customization of printing table
Post by: geokom on September 17, 2024, 01:43:25 PM
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)
Title: Re: customization of printing table
Post by: Liviu Lalescu on September 17, 2024, 01:52:59 PM
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)?
Title: Re: customization of printing table
Post by: Volker Dirr on September 17, 2024, 02:52:52 PM
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".
Title: Re: customization of printing table
Post by: Liviu Lalescu on September 17, 2024, 03:06:05 PM
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.