Solved

Renaming Subreports

Posted on 2002-05-23
11
4,075 Views
Last Modified: 2010-05-18
Hello Hackers,

I have a report with subreports, when I save the subreport and load it into another report it keeps the same name.

All works OK, but it looks stupid when the subreports are named incorrectly.

So, is there a way to change the name of the subreport?  Either in the editor where there are subreports as part of the main report, or when the saved subreport is opened by itself?

Cheers,
Bonker.
0
Comment
Question by:scrumper64
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 7029568
What name are you referring to?  Is this something users of the report see or is it only the report developer?

I use subreports all the time and I only see the reportname during development.

If you are referring to the Windows filename:
If the subreport is to be used only by one report you could rename it through File Manager or Windows Explorer and then just reload it into your main report.

Need a little more info
mlmcc
0
 

Author Comment

by:scrumper64
ID: 7029696
It's only the name we see in development in the designer. (using Crystal 8.5 BTW)

It's annoying because we have to use the subreport names in a database table which is used to populate the reports from disconnected recordsets on the Client PCs.

The weird thing is that crystal somehow stores the subreport name (hides it) in the .rpt file when you save it with "Save Subreport As..."
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 7030158
You could copy and rename in Windows.  Then in CR reimport it and it should show the new name.

mlmcc
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:ejiang
ID: 7037938
If you are using Crystal Reports 8 or later, you could simply open up the report (that contains this subreport) in the report designer(editor), and then right-click on the subreport, and select "Format Subreport...", there will popup a Format Editor, you can then click on "Subreport" tab, and enter whatever name you want to the "Subreport Name" box. I hope this helps.
0
 

Author Comment

by:scrumper64
ID: 7038755
You can't change the name using the Supreport tab you mention :(
0
 
LVL 3

Accepted Solution

by:
ejiang earned 200 total points
ID: 7043477
There is another way that you could do to change subreport, which is to take the report and then change its subreport from a VB application using Report Designer Component Object Model. But that will involve a bit of programming in VB, also require that you've got Crystal 8 or later.  What version of Crystal Report do you have?
0
 

Author Comment

by:scrumper64
ID: 7164454
Hi, I just revisited this problem and I was able to change the report name programatically with the RDC as you said in your last comment.  This saved me having to recreate the report.
Cheers!
0
 

Expert Comment

by:salepoint
ID: 8602127
Can this be done with version 8.0 Professional
0
 

Expert Comment

by:salepoint
ID: 8607487
ejiang/scrumper64:

I have the same issue... using CR 8.0 Pro.  I have several subreports that must be renamed.  They have hyphens in their name, which incidentally causes the SWCS service to crash when trying to send their DB login/password parameters via HTML.

Anyway, I cannot export/rename/import (another feature of Crystal 8.0).  The above option seems the only feasible way.  Can you be more specific.  Do I need 8.0 Developer?  What is the property that needs to be changed?

Thank you.
0
 

Author Comment

by:scrumper64
ID: 8609745
The only way I was able to rename a subreport was by doing to progmatically via the RDC.
0
 

Expert Comment

by:salepoint
ID: 8609802
-- I gathered that from above.  Can you please be more specific?
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question