Hi guys,
how can I change the caption of a report dynamically, if I want to start the same report with another caption?
I have already set a text variable like "ReportCaption" for the "Caption" property and it is initally set to "Text1" in the "OnInitReport()" trigger.
ReportCaption := 'Text1';
It does not function when I start the report. The title bar has the text "ReportCaption" and not "Text1".
Furthermore, I want to start the report from another place and change this report caption.
Answers
In 2013 or Later it's quiet simple.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
Yes, it's 2013 R2
If Condition then
Caption := 6
ELSe IF Condition THEN
Caption := 7 and so on....
Pit this caption in the Dataset of the Report and use the this caption expressiion on your report and check.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!