FET Forum

FET Development => Suggestions => Topic started by: Bobby Wise on January 09, 2009, 02:17:32 PM

Title: Page Break
Post by: Bobby Wise on January 09, 2009, 02:17:32 PM
Hi, would it be possible to have an additional page break inserted after every day when printing all_activities_timetable_time_vertical?

Thanks for a great program

Best of 2009 for everyone
Title: Re: Page Break
Post by: Liviu Lalescu on January 09, 2009, 02:22:59 PM
Let us wait for Volker to answer this, he is in charge with that.

May I remove your latest suggestion from the Guestbook? This is to keep the Guestbook only with appreciation of FET and not suggestions.
Title: Re: Page Break
Post by: Bobby Wise on January 09, 2009, 02:29:57 PM
No problem
Title: Re: Page Break
Post by: Volker Dirr on January 10, 2009, 01:30:14 PM
If you need it now, you can do manualy:

Just open the all_activities_timetable_time_vertical file with an editor.

search lines like this:
<tr>
<th rowspan="8">M<br />o<br />n<br />d<br />a<br />y<br /></th>

So search line that contain the name of the day. All characters of the dayname end with an <br />.
just edit the <tr> in the line before the name of the day. so it should look like this:

<tr class="day" >
<th rowspan="8">M<br />o<br />n<br />d<br />a<br />y<br /></th>

So you need to change as many lines as you have days per week. (so i guess you only need to change 5 lines.) (You don't need to do it with the first day monday, but it is not bad if you also do it with the first day, you just get an empty page at the beginning.)

Then open the stylesheet.css with an editor.
just add this:
tr.day{
page-break-before: always;
}

Title: Re: Page Break
Post by: Bobby Wise on January 11, 2009, 07:02:42 AM
Thanks Volker
Title: Re: Page Break
Post by: Volker Dirr on February 22, 2009, 01:47:16 PM
The new snapshot can also split days automatically. compare fet->settings.
please check the new snapshot.
Title: Re: Page Break
Post by: Liviu Lalescu on February 22, 2009, 02:34:33 PM
The snapshot is at: http://lalescu.ro/liviu/fet/download/test/