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.
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.
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
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.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
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.
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
http://www.digital-metaphors.com
info@digital-metaphors.com
I am going to save the report templates into an oracle database. Will this
procedure that you are outlining work in that instance?
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
http://www.digital-metaphors.com
info@digital-metaphors.com