Print tables directly from FET preview version

Started by Volker Dirr, March 30, 2010, 07:33:58 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Volker Dirr

Hallo

I started coding a new feature: print tables directly from fet.

Please have a look at this preview version:
DELETED, BECAUSE IT IS OLD.

Again i was to lazy to code a new menu, so the new printing feature is "hidden" in
FET->advanced->activity planning

Currently only a few tables are printable.
Of course i know myself there are missing features:
- print also students, rooms, ...
- selectable (teacher, students, rooms,...) names. So only selected names are printed
Of course that must all be still coded.


I released this preview, because i want to know this:
- Can you print the tables?
- Is the table style (print) usefull?
- Is a compulsory styling feature missing?
- Will you use this printing feature? Or do you prefer printing with a webbrowser(, because you can style that tables much more).

it is very difficult to optimise the style much more, because Qt support only a few ccs styles ( compare http://doc.qt.nokia.com/4.6/richtext-html-subset.html ).
And some of them are also buged. (for example a simple text align. compare http://bugreports.qt.nokia.com/browse/QTBUG-2730 ).

Of course all can be coded manualy. But i am limited in time and want to use css. I guess it is faster to fix the bug in Qt then coding a workaround in FET. So maybe donate to Qt if you want that css support will be fixed.

Even with css i still need several days to finish that work.

Let me know your opinion, because i am not 100% sure if i should go on coding this. The current existing html tables look much better and will always be more styleable then this simple direct printing.

Bobby Wise

This is fantastic news Volker. Thank you. I will definitely be using this feature.

One thing though when I now access Activity Planning I can only find the print function, the activity planning function is no longer available. Is that just a temporary problem?

Volker Dirr

#2
That is of course only tempoary.

Coding need much time and as long as i am not sure if Liviu add the feature into official version i will not waste time in coding the menu.
So it will stay like this until all needed features are added, code is cleand up and Liviu decide to implement into offical.

Like you can see a lot things are still missing, so it will take several weeks to code the rest. I am not sure if it make sence to spend so much time in coding this feature if users still print with a webbrwoser, because the table style in webbrowers is sweeter and much more styleable.

Bobby Wise

As explained to Liviu, my schools are very remote and it is difficult to assist them. They also can't understand why you can't print directly from FET especially when yu can view the TT. So this will definitely help.

Volker Dirr

I just want to underline this:
I talked about donating(helping) to Qt. I can't also fix Qt bugs.

Bobby Wise

#5
I'm sorry Volker, I am certainly not in a position to be able to assist with the development. I have no knowledge.

Sorry I can't help. I will donate whenever I can.

Volker Dirr

#6
Thank you Bobby.

Sadly so far only you answerd one of my questions. Answers to other questions are still missing. Also answers from others users are wellcome.

Never the less, i coded more in the last weeks. it took more time then expected, because i found some critical problems.

i put a new version on my sever now. would be nice if some guys check it and answer my (old) questions.

new in this version is:
printing teachers, rooms, ...

maybe you know from html time timetables, that the tables are (sometimes) very big. so i added a new feature to split tables after a selectable number of names. this is supported to nearly all tables (except the "all activities" and the "teachers free periods" table, because it is very difficult to write that also for that tables).

i think i should maybe convert this new feature (splitting after x names) also to the html tables, but i am not sure. maybe someone can comment this question also.

you can get this version from here:
http://www.timetabling.de/unofficial/fet-5.13.0.vd2.print.exe

Bobby Wise

Thanks for your great effort Volker.

I've just tested it briefly and it works fantastic.

This is exactly what I need.

Thank you ver much.

tevi

I've not tested your print function, but sure it's a good idea code abaout it. FET needs something like this. But Html format is needed also.

Chafik Graiguer

#9
Thanks a lot Volker !!
This is a major improvement for FET
I tested it today, I found it so useful
Along with activity planing, FET is getting more and more user friendly  :)
You already added a  "split tables after a selectable number of names", so is it possible to check/uncheck days to print?

Edited to add: What about Right To Left languages like arabic
If I choose  Days vertical, the listing should be like this:
11:00 ------ 10:00 ------ 09:00 ----- 08:00
*****------- ***** ----- ***** ---- ******(Monday) الإثنين
*****------- ***** ----- ***** ---- ****** (Tuesday) الثلاثاء