Hey Nathan,

2013/2/22 Nathan Ridge <zeratul...@hotmail.com>

>
> Hi,
>
> I am wondering how can I render a WTable into a PDF? I see
> that there is a WPdfRenderer class that will render XHTML
> to PDF, but can I get at the HTML that the WTable would be
> rendered as if it were shown on an HTML page, and pass that
> to a WPdfRenderer?
>

I have never tried it but it could work: you can render any widgets to HTML
using
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WWidget.html#aaae07190fb97d856149226ea315a75d0

Note that there could be interference with the library since this will do a
full render step of the widget which interferes with possible pending
incremental updates.

The renderer may not support all the features of WTable however (but is
being constantly improved, we've got CSS stylesheet support going in a
development branch).

Anytime we use the renderer, we start from actual HTML, serializing
contents to proper HTML (table, tr, td/th elements) first.

Regards,
koen
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to