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

How to copy a template to a memo field

edited December 2001 in General
Where can I find information on copying a report template to a memo
field of a client dataset.

Comments

  • edited December 2001
    Not sure what the main goal is. If the template is on the database, you
    should be able to just load that memo field directly off of the database.
    If the template is in an rtm file, just call Report.Template.LoadFromFile.
    Configure the template's DatabaseSettings and you can then save the report
    to the database: Report.Template.SaveToDatabase.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited December 2001
    the template is currently on the hard drive. I want to load it into a memo
    field so that it is not dependant on a hard drive designation. from that
    point on the template will be loaded from the memo field. I must get the
    original template into a memo field by moving it from my "C:" drive.

  • edited December 2001
    I would move all the file based templates into the database at one time.
    Programatically load the templates from file. Move the rtms into one
    directory on your c:\ drive. Loop through all of the rtm filenames, and
    load them into a Report.Template object. Set the Template.DatabaseSettings
    (the configuration for your end user reports table), then call
    Template.SaveToDatabase


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited December 2001
    Jim,
    I am going to save the report templates into an oracle database. Will this
    procedure that you are outlining work in that instance?

  • edited December 2001
    In our end user solution demos, there is a pipeline specifically used for
    the report items in the report explorer. This is a pipeline that allows you
    to read/write the reports from the database. Use the same report items
    datapipeline to set the Report.Template.DatabaseSettings.Datapipeline
    property. See the help file on TppCustomTemplate.DatabaseSettings.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.