what properties need to be set
in order to save a report as template to a file on disk?
i have set the saveAsTemplate to true,
in the template property i've set ftAscii, stFile, ftTab
designer is AllowSaveToFile set to true
but when saving at runtime no files appear on disk, and no errors are thrown
tia,
marc
i have set the saveAsTemplate to true,
in the template property i've set ftAscii, stFile, ftTab
designer is AllowSaveToFile set to true
but when saving at runtime no files appear on disk, and no errors are thrown
tia,
marc
This discussion has been closed.
Comments
Are you trying to save your report as a Template (.rtm) file or a text file?
If you are trying to save as a template, there is no need to set the
TextFileType property. Are you able to save a template down by selecting
File | Save from the main menu of the Designer or Preview window? Note that
setting SaveAsTemplate to True will automatically load the template defined
in the Template.FileName property and when you close the report, will try to
save it as that file as well.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
i'm saving through the File-SaveAs in the designer (not preview)
and the path is predefined but i change the path to where i want to save
Note that
defined
does this mean that the designer is firstly loading the report from disk?
(unwanted behaviour)
what i want to accomplish is this:
i have predefined reports which the user may change layout, and i store the
report in some form in the database backend for later retrieval; but when i
alter a report to match certain pos printers then i want to save that design
to a .rtm file so i can archive it for later reuse; so i can load that rtm
file with another client with similar hardware..
btw, got the Escape() function working through a RAP call, RB still keeps
amazing me
cu
marc
Sorry, I somehow lost track of your post.
Yes, when you have the SaveAsTemplate property set to True, ReportBuilder
will try to load the report template you have defined in the
Template.FileName or Template.DatabaseSettings
If you are loading these reports from a database, selecting File | Save As
from the main menu of the runtime designer will only save the report
template down as a new entery on your database. If you would like to save
that report to a .rtm template file, you will need to select the File | Save
To File main menu option (just below the Save As option).
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
i do not have the Save to File menu option....
tia,
marc
When you set the AllowSaveToFile property to True, the Save To File menu
option is automatically made visible and enabled. You can see this in the
TppDesignerWindow.mniFileClick procedure located in the ppDsgner.pas file.
Be sure that the AllowSaveToFile property is not being set to False anywhere
in your application prior to the designer loading. You might try placing a
stop in the OnShow event of the designer and check the value of this
property to be sure.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com