Re: How to make report generation in gtk



Hi Greg,

a tiny correction. Tables with correct pages breaks are easy to do and don't even need CSS. The only problems are that MS IE does not support it (which might not be a problem here) and that many people are not aware of it :).

Just do:
<table>
  <thead>
    <tr>
      <th>Header1</th><th>Header2>
    </tr>
  </thead>
  <tbody>
    <tr>
      ...
    </tr>
    <tr>
      ...
    </tr>
  </tbody>
  <tfoot>
    <tr>
      <td>...</td>
    </tr>
  </tfoot>
</table>

If you print such a page from firefox or mozilla the repeat the parts enclosed in thead and tfoot for every page.

Stefan

Greg Breland wrote:
The Glom project had this problem recently and Murray decided to go with
simple HTML reports.  From what I've seen on the Glom mailing list he
seems happy with it and you can't get any simpler than just generating
HTML.

The big downside to HTML is that it has very weak page breaking
support.  If you need to print a report where the column headers repeat
at the top of each page, it's hard to get that working correctly on
current gen browsers.  There is some CSS3 specs that will eventually
make it easier, but it's anyones guess when that will be implemented.

Looking even further in the future, Ciro is a unified screen/print
display API that will allow you to just draw on a canvas and then print
the canvas with very good control over the output.  Ciro shipped with
GTK 2.12 I believe, but I don't know how solid it currently is for
generating reports.

On Thu, 2005-09-15 at 15:50, rush ta wrote:

hello guys ...

My project involves a lot presentation printout to be taken ...

Is there a way I can generate REPORTS in GTK..


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]