How to get a RTM-File in a BLOB
Hello all together!
I have several template-files, created by several ppReports.
Now, I like to manage them in a database.
I put all template-files in blobs.
But only one template is displayed in the report.
It's the template, which is created by the connected ppReport.
I think, i can only load the report, when it's loaded and
saved over the connected report.
Is there a short way to transfer all templates to one ppReport?
Thanks, Olaf
I have several template-files, created by several ppReports.
Now, I like to manage them in a database.
I put all template-files in blobs.
But only one template is displayed in the report.
It's the template, which is created by the connected ppReport.
I think, i can only load the report, when it's loaded and
saved over the connected report.
Is there a short way to transfer all templates to one ppReport?
Thanks, Olaf
This discussion has been closed.
Comments
Here is an rbWiki article about saving/reports to a database. Once you get
things configure properly you can use the Report Designer to load reports
from file and save to database or vice versa. And you can also write code to
do it.
www.digital-metaphors.com/rbWiki/Design/Templates/How_To...Load_Report_Templates_from_a_Database
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I tried to copy the rtm-files direct into a blob.
That will not work.
Olaf
That approach should work as well.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
But only when the ppReport-name by the created rtm-file is equal?
Isn't it?
Olaf
Perhaps I misunderstood.
The basic approaches are...
Use the Designer (i.e. the File menu options)
Use the Report.Template object (from Delphi code)
Write Delphi code to load the .rtm file into a stream and then load the
stream into a blob.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Now, after your tips - i took this way and it works fine.
First, i tried to LoadFromFile .rtm and SaveToBlob with a Firebird Manager.
For me it will not work. I will not try again, because...
... your shown way is wonderfull. It works great.
Thanks, Olaf