Global Constants
All,
I want to be able to add a report title and summary to all my reports. I
think the way to do it is to add global constants with this information in.
(Could be way off track here. Please advise.)
How then do I get at the global constants from delphi at runtime with a
dynamically loaded report?
TIV,
Paul.
I want to be able to add a report title and summary to all my reports. I
think the way to do it is to add global constants with this information in.
(Could be way off track here. Please advise.)
How then do I get at the global constants from delphi at runtime with a
dynamically loaded report?
TIV,
Paul.
This discussion has been closed.
Comments
use a JITPipeline for general informations.
HTH,
Chris Ueberall;
Either I have not understood your answer, or you have misunderstood my
question. The global constant is declared inside the report. I want to be
able to extract this.
Regards,
Paul
If I understood you right, your problem isn't accessing ReportBuilder's global constants rather than supporting all reports with data from your application (-> ' I want to be able to add a report title and summary to all my reports'). the latter could be solved in using JITPipeline.
regards,
Chris Ueberall;
My apologies, I couldn't have explained myself very well. I want to be able
to store a report title and an report summary with the report. Then when I
use and explorer type interface, I want to be able to load the report and
display this information in my explorer before the report is run.
I decided that possibly the way to do this was to store this information in
Global constants declared within the report. I then could not work out how
to load the report and retrieve these constant values from the report.
Since I sent my original post I have worked out that I can write the
following:
TraCodeModule(ppReport1.CodeModule).Programs.Constants[0].AsString
However, I would like to be able to do something like
TraCodeModule(ppReport1.CodeModule).Programs.ConstantByName('REPORT_TITLE').
AsString;
Is this possible or am I attacking this problem from entirely the wrong
angle?
I hope this is clearer.
Regards,
Paul.
to use the storage of a report template you can use the property 'TppCustomTemplate.Offset' to define extra space.
See tech tip 'Tech Tip: Storing Custom Information with Templates'
regards,
Chris Ueberall;