Re: Problems printing GANTT chart

831 views
Skip to first unread message

Tony Daly

unread,
Jul 4, 2012, 4:03:32 AM7/4/12
to taskjugg...@googlegroups.com
Steve,

Have you adjusted the page scale settings so that it will fit on a single page?

Tony



On Tuesday, July 3, 2012 8:26:36 PM UTC+1, Steve Davies wrote:
Hi,

I'm having problems getting Firefox to print a GANTT chart correctly. The browser displays OK, but only the first page of the GANTT prints OK. The second and subsequent pages render the 'chart' part of the GANTT as a mid-grey box. The project is quite large (and a bit unusual - see below for the background), and has no problems displaying in the browser. I've tried using 'start' and 'end' to limit the width to a task date range, and also changing the page scaling in the browser, but to no avail.

I'm running 3.2.0 on Windows 7 (and XP) under Ruby 1.9.3. Firefox is at the latest version - 13.0.1.

Thanks for your time,

Steve.
 
BACKGROUND:
I'm very new to TaskJuggler (5 days experience and counting!) I'm trying to use TaskJuggler to visualise the parallel processing flow of our system by creating each batch component as a task, with it's duration set to the time it takes to run, and the start and end times converted to start and end dates. There are about a 1000 tasks that I've pasted into the .tjp, taking template.tjp as a base. The overview.html report is about 26Mb once generated. I can post up the .tjp if you'd like to see it - it's about 70K uncompressed. 

Steve Davies

unread,
Jul 4, 2012, 4:49:04 AM7/4/12
to taskjugg...@googlegroups.com
Hi Tony,

If you mean that I should set Firefox to scale the page, then yes, I've tried all the various configurations available. The browser only scales the page width, so a 1000 task GANTT normally prints over more than page, no matter how small the scale (unless it is vanishingly tiny!). In all configs only the first page is OK.

Incidentally I've also dabbled with the other main browsers (IE, Opera and Chrome) but these also show various problems (notably not printing the actual task bars and being incredibly slow) so I decided to persevere with Firefox (and to keep the thread focused...)

I've not found anything in TJ that scales the chart - keywords like 'width' only set the chart pixel width, and don't scale...

Regards,

Steve


Rob Maurer

unread,
Jul 4, 2012, 1:13:21 PM7/4/12
to taskjugg...@googlegroups.com
The only solution I have found producing printed TJ results as good as the screen output is an HTML to PDF converter (I've been using the free Winnovative product). No browser I've tried (IE, FF, Chrome) was up to the task. - Rob




--
You received this message because you are subscribed to the "TaskJuggler Users" group.
To post to this group, send email to taskjugg...@googlegroups.com
To unsubscribe from this group, send email to
taskjuggler-us...@googlegroups.com
For more information about TaskJuggler visit http://www.taskjuggler.org



--
*     *     *     *
Rob Maurer
508.827.1275 voice/text
253.276.5340 fax
rob-maurer Skype
robm...@gmail.com

Bill Mills-Curran

unread,
Jul 4, 2012, 5:49:30 PM7/4/12
to taskjugg...@googlegroups.com
I'm having problems with the chart width, too. I have not been
successful in widening the chart so the scroll bar isn't there. As a
matter of fact, the width parameter doesn't seem to do anything.

As far as printing a large chart, one thing that might work (I used
this with the old version of TaskJugger) is to have firefox print to
file with a large paper size (like A1). Then you can use "poster" to
print sections nicely on letter (or A4) size.

On Wed, Jul 04, 2012 at 01:13:21PM -0400, Rob Maurer wrote:
> Date: Wed, 4 Jul 2012 13:13:21 -0400
> From: Rob Maurer <robm...@gmail.com>
> To: taskjugg...@googlegroups.com
> Subject: Re: [taskjuggler-users] Re: Problems printing GANTT chart
> Reply-To: taskjugg...@googlegroups.com
> Precedence: list
>
> The only solution I have found producing printed TJ results as good as the
> screen output is an*HTML to PDF converter (I've been using the free
> ** ** ** ** ** ** *
> Rob Maurer
> 508.827.1275 voice/text
> 253.276.5340 fax
> rob-maurer Skype
> robm...@gmail.com
>

Steve Davies

unread,
Jul 5, 2012, 6:58:21 AM7/5/12
to taskjugg...@googlegroups.com
Hi Bill, Rob

Thanks to Rob I've got a work-around for my problem. I had previously tried printing to PDF, but using a PDF driver installed as a printer, which gave the same result as direct printing from the browser, presumably because the browser was still doing the print rendering. I installed a Firefox add-on that printed PDF directly from the web page - I used 'print pages to pdf'.

This add-on now prints all of the pages correctly, which is great. It does squeeze the GANTT horizontally so that the whole width fits across the page (I was hoping for some kind of 'tiled' print), but this isn't a huge problem as I can easily create vertical slices through the GANTT using the 'start' and 'end' date parameters in the 'taskreport'.

Bill, the 'width' keyword works fine for me. I'm using a .tjp based on the 'template.tjp' that gets installed as an example. My 'project' runs for 20years (!), and I removed the scroll bar on the chart by setting it to 30000. As an example, in template.tjp, change the line that reads:

          revenue, chart { ${TaskTip} }

to:

          revenue, chart { ${TaskTip} width 30000 }

Regards, Steve.

 

Bill Mills-Curran

unread,
Jul 5, 2012, 8:33:54 AM7/5/12
to taskjugg...@googlegroups.com
Steve,

Thanks... I found my "width" issue. I had too much going on (many
reports) and was editing one report, but looking at another. So, I
found that it works just fine.

I did test printing to file with a large page definition, then using
"poster"... It works fine, although the larger format sizes (like A0)
run slowly, both for poster generation and viewing. I've used this
capability at work to generate large charts.

Bill


On Thu, Jul 05, 2012 at 03:58:21AM -0700, Steve Davies wrote:
> Date: Thu, 5 Jul 2012 03:58:21 -0700 (PDT)
> From: Steve Davies <steveda...@gmail.com>
> To: taskjugg...@googlegroups.com
> Subject: Re: [taskjuggler-users] Re: Problems printing GANTT chart
> Reply-To: taskjugg...@googlegroups.com
> Precedence: list
>
Reply all
Reply to author
Forward
0 new messages