Solved

Renaming Subreports

Posted on 2002-05-23
11
3,967 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
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
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
Comment Utility
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
Comment Utility
You could copy and rename in Windows.  Then in CR reimport it and it should show the new name.

mlmcc
0
 
LVL 3

Expert Comment

by:ejiang
Comment Utility
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
Comment Utility
You can't change the name using the Supreport tab you mention :(
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 3

Accepted Solution

by:
ejiang earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Can this be done with version 8.0 Professional
0
 

Expert Comment

by:salepoint
Comment Utility
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
Comment Utility
The only way I was able to rename a subreport was by doing to progmatically via the RDC.
0
 

Expert Comment

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now