Custom Label Component
I made a custom label component with a new reportid property. On the
right click there is a report name selection that displays a modal
dialog allowing the user to select from a drop down list. That dialog
returns an ID that I am trying to save in a new ReportID property in the
rtm file of the report. However I cannot get the new property to
save. Any idea how I am suppose to do this?
right click there is a report name selection that displays a modal
dialog allowing the user to select from a drop down list. That dialog
returns an ID that I am trying to save in a new ReportID property in the
rtm file of the report. However I cannot get the new property to
save. Any idea how I am suppose to do this?
This discussion has been closed.
Comments
If the ReportID property is published, it will automatically be saved to
template when the report is saved. See the demo in \Demos\6. RCL\... for
more information on creating a custom component.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
In my testing with the demo code located in the \Demos\6. RCL\... directory,
I was able to add a ReportID property to the published section of a
TmyCheckBox component, see it in the designer when designing a report at
runtime, and verify that it was saved down to the template file when saved.
Be sure you are following the steps used in this example to create your own
components.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
No need for an example. I simply opened the \Demos\6. RCL\myChkBox.pas
file, added a published property named ReportID to the TmyCheckBox class
with a corresponding FReportID field in the private section and compiled and
ran the main end-user app located in the \Demos\3. EndUser\... directory
with checkbox enabled. (Make sure you have the correct check box files in
your Delphi library path).
Finally I changed the template property to save as text and saved it to disk
to see if the ReportID property was present.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com