changing the name of a sub report in designer
Hi
Is there any way to change the subreport name inside designer?
I have two programs
1. First one allows my customers to customize their report and save the rtm
files. (TppDesigner is used)
2. Second one reads this rtm file and prints the report
When I introduce a new subreport in the report, I would like to import my
new sub report into customer's rtm file without losing the changes they have
already made.
I tried the following:
i. Saved my new subreport (say myNewSubReport) alone to the disk
ii. Opened customer's rtm file in the first program.
iii. Added a new sub report to it (Report builder named this as subreport1)
iv. Using 'Load sub report' option, imported the sub report I saved in
step i.
But this doesn't work because my 'Second' program looks at sub report with
the name myNewSubReport , not subreport1.
I could not change this subreport name to actual subreport name. Is thery
any way to change the subreport name?
or is there any other way to import a sub report? Can some one help me?
PS. Iam using Delphi 5.0, Report builder 6.03, Windows XP
Thanks in advance
Monichen.KA
monichen.ka@consona.com
Is there any way to change the subreport name inside designer?
I have two programs
1. First one allows my customers to customize their report and save the rtm
files. (TppDesigner is used)
2. Second one reads this rtm file and prints the report
When I introduce a new subreport in the report, I would like to import my
new sub report into customer's rtm file without losing the changes they have
already made.
I tried the following:
i. Saved my new subreport (say myNewSubReport) alone to the disk
ii. Opened customer's rtm file in the first program.
iii. Added a new sub report to it (Report builder named this as subreport1)
iv. Using 'Load sub report' option, imported the sub report I saved in
step i.
But this doesn't work because my 'Second' program looks at sub report with
the name myNewSubReport , not subreport1.
I could not change this subreport name to actual subreport name. Is thery
any way to change the subreport name?
or is there any other way to import a sub report? Can some one help me?
PS. Iam using Delphi 5.0, Report builder 6.03, Windows XP
Thanks in advance
Monichen.KA
monichen.ka@consona.com
This discussion has been closed.
Comments
If you are accessing the subreport object in Delphi code, you are going to
want to use the Name property. From RAP code you want to use the UserName
property.
The latest version of ReportBuilder inlcudes a built-in inspector that can
be used with the designer at runtime and allows you to change these
properties from inside the designer itself.
In your case, it would be best to simply create the subreport entirely in
code so you can assign the UserName/Name property in Delphi code.
http://www.digital-metaphors.com/rbWiki/Delphi_Code/Layouts/Create_SubReport_in_Code
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com