On Fri, May 21, 2004 at 15:31:35 +1000, Daniel Kasak wrote:
> Now that I have enough data entry forms, I have to deal with *one*
> printable report.
> It's for management. It has to look decent.
>
> My first idea was to use PHP or Perl to render the pages via a web
> server, and put some page breaks in with CSS. It's dodgy but it works
> and it's simple. The only issue I have with this is that it's "external"
> to the app, ie the user has to open Mozilla ( or I suppose I could
> trigger Mozilla and open to a CGI page or something ).
>
> Is there a better solution? I've heard of GtkHtml, but I'm not sure
> exactly what this gives me, and how it would print. However I assume I
> can embed it in my app, which would be a bonus if it wasn't too much
> mucking around.
>
> I'm also aware of some report generator packages around, but I'm really
> just trying to keep things simple - for the moment - so I can get what's
> been done on a desktop and tested, and maybe move onto a full-featured
> solution later.
>
> Any ideas?
Embeding the GtkHtml widget is probably easiest. You could also use the
GtkTextBuffer/GtkTextView stuff directly, but that does not handle any
markup. However, if you generated the report in the application itself,
it would be simpler. Except I don't think there is an easy way to make
a hardcopy, so you would need to generate the markup anyway.
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@xxxxxx>
signature.asc
Description: Digital signature
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|