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

Embedding Data to the report

edited July 2004 in General
Is it possible to embed data (one record) into a report file and save it
programmatically so that another user can open it up, display it and print
it?

Which leads to my second question, can you write a basic app to open a RB
template (with the embedded data) and print it?

Thanks

Comments

  • edited July 2004
    Hi Reid,

    You may want to check out ReportBuilder's Archive capabilities. This more
    or less allows you to take a snapshot of a report and view it later without
    the need for data connectivity. See demo 151 (dm0151.pas) in the
    /RBuilder/Demos/1. Reports/... directory for an example of how to print to
    and view archive files.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Nico,

    After reviewing that unit, I am assuming that you need to use a
    TppArchiveReader to open the archive. How do you create the archive to
    begin with?

    Thanks
  • edited July 2004
    Hi Reid,

    Yes, you will need to use the TppArchiveReader component to view an archive
    file. The Archive Reader is much like the Report Preview in that you can
    load a report, view it, and print it from a similar interface.

    Any existing report can be printed to an archive file by simply setting the
    Report.AllowPrintToArchive to True, defining the ArchiveFileName property
    and changing the device type to ArchiveFile (if you want to generate
    directly to archive). This will create a .raf file which can then be viewed
    from the Archive Reader.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2004
    Nico,

    That is just what I was looking for.

    Thanks again.
This discussion has been closed.