Embedding Data to the report
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
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
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
That is just what I was looking for.
Thanks again.