Home Devices
New Blog Posts: Merging Reports - Part 1 and Part 2

Tables, HTML, ExtraDev

edited March 2003 in Devices
ExtraDev is working great for me now that I've tossed TppWPTRichText and
replaced it with TppDBRichText (RB 7, Delphi 7).

I have a report with a table inside a TppDBRichText. When I use ExtraDev to
save to RTF or PDF, the table comes out fine. When I save to HTML, though,
I lose the table structure.

I believe HTML supports tables; the problem is maybe that the table is
inside RTF. Any suggestions on how to get a table in my HTML output? (I
didn't try XHTML yet; don't know if that would matter?)

Thanks.

Mike Carroll
Sigma Data Systems, Inc.

Comments

  • edited March 2003
    You are correct. The table is in RTF and the RTF to HTML parser within the device does
    not recognize table definitions. If you send me a RB archive file of the report I can see if there
    is any way to render it correctly.

    James Waler
    Waler Ltd
    http://www.waler.com
  • edited March 2003
    Ok, thanks. One other question: suppose I found a way to drop the RTF, or at
    least not have the table inside it. Is there an RBuilder widget TFoo such
    that if my report contains a TFoo instance, and I print to HTML using
    ExtraDev, my output will have an HTML table in it that corresponds to the
    TFoo object?

    Mike Carroll
    Sigma Data Systems, Inc.
  • edited March 2003
    That is possible. The RB device architecture requires the TFoo object to
    recognize the device and call the correct device method. You can either
    have the new object be able to break the table into known draw commands
    or you can alter the device to add a new method that draws a table and have
    the object call that.

    I would be happy to work with you on this. Just send the sample and a description
    of your requirements.

    James Waler
    Waler Ltd
    http://www.waler.com
  • edited March 2003
    If I take the CrossTab demo, add ExtraDev, and print to HTML, I get HTML
    with and
    tags. Not quite sure how or why, but it works.
    Think I'll head in this direction.

    Mike Carroll
    Sigma Data Systems, Inc.
This discussion has been closed.