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

How to get a RTM-File in a BLOB

edited January 2009 in General
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

Comments

  • edited January 2009



    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
  • edited January 2009
    Thanks, your shown way works fine.

    I tried to copy the rtm-files direct into a blob.
    That will not work.

    Olaf
  • edited February 2009


    That approach should work as well.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2009
    >> I tried to copy the rtm-files direct into a blob.
    But only when the ppReport-name by the created rtm-file is equal?
    Isn't it?

    Olaf
  • edited February 2009

    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
  • edited February 2009
    > Use the Report.Template object (from Delphi code)
    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
This discussion has been closed.