Saving PDF file to database and load it from database
Hello all.
I'm using Delphi 7 and Report Builder 9.03.
This is what I want to do:
1. generate a report
2. save this report to a database as a PDF
3. load this report from database and display it
4. save the report to a pdf file
I can do steps 1 and 2, but I don't know how I can load the pdf from the
database and display it. I'm saving it as a stream, as shown on the demo
109. My question is how can I load it and display it (not on acrobat, I want
to do it inside a delphi application). Should I save the report in another
format so I can load it into the tppviewer? Or is it possible to do with a
stream?
Thanks in advance.
Best Regards
Goncalo Martins
I'm using Delphi 7 and Report Builder 9.03.
This is what I want to do:
1. generate a report
2. save this report to a database as a PDF
3. load this report from database and display it
4. save the report to a pdf file
I can do steps 1 and 2, but I don't know how I can load the pdf from the
database and display it. I'm saving it as a stream, as shown on the demo
109. My question is how can I load it and display it (not on acrobat, I want
to do it inside a delphi application). Should I save the report in another
format so I can load it into the tppviewer? Or is it possible to do with a
stream?
Thanks in advance.
Best Regards
Goncalo Martins
This discussion has been closed.
Comments
ReportBuilder does not have a PDF viewer included. If you would like to
save reports to a database to be viewed later inside ReportBuilder, your
best option would be to either save the report template or a generated
archive file. Then you can either load the template using the
TppReport.Template object or load an archive file using the
TppDBArchiveReader component.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
think that's a good solution.
Thanks Nico.
Best Regards
Goncalo Martins