Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: Copy/Paste from subreport to subreport Post Reply Post New Topic
Author Message
WynApse
Newbie
Newbie


Joined: 30 Aug 2007
Location: United States
Online Status: Offline
Posts: 5
Quote WynApse Replybullet Topic: Copy/Paste from subreport to subreport
    Posted: 30 Aug 2007 at 10:44am
I had this in the wrong forum, so am moving it and in the process I pooted the cut and paste, so I'm re-writing...
 
I have a LOT of subreports in a legacy VS2003 app that's using whatever Crystal Reports came with VS2003 Pro.
 
I didn't design it, but I'm supporting it. All the subreports were inserted into "Footer" sections, which is now causing a problem. I didn't even realize they were in Footer sections until the errors appeared. This has been online for at least 4 years.
 
Anyway, I've started multiple times walking down the list creating new Details Sections and moving static info, but I can't drag/drop or cut/paste or copy/paste the xyz_sub.rpt from the footer to the details.
 
If I insert->subform and pick the same name as the one I want, it appears to be an older version that will need at the very least some reformatting, and in some cases, has missing fields completely.
 
Remember... there are 14 of these, and there are two apps, so I'm really looking at whatever the solution is 28 times!
 
Is there a good, clean way to copy that data? Can I somehow maybe produce a .rpt file in my Solution Explorer with the subreport info for each one? It can't be this hard to use (I hope).
 
I figured out the sub report that looks like an old version was actually a subreport in Solution Explorer, not one contained inside the .rpt file I'm working on.
 
I don't see any way to move a sub report between sections in a main report... help!
 
Thanks!
 
 


Edited by WynApse - 30 Aug 2007 at 11:05am
-Dave
MVP:Visual Developer - Client Application Development
http://www.wynapse.com | http://www.silverlightcream.com
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 30 Aug 2007 at 11:04am
No, you can't copy/paste the subreport. But you can drag and drop it to a new section. I don't know why this would be working for you. What if you make the Details section larger to make sure you are dropping it in there correctly? Don't know... this shouldn't be a problem.

If there is a copy of the subreport in the Solution Explorer, you can add a new subreport to the Details section and then pick that report from the first dropdown list.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
WynApse
Newbie
Newbie


Joined: 30 Aug 2007
Location: United States
Online Status: Offline
Posts: 5
Quote WynApse Replybullet Posted: 30 Aug 2007 at 11:18am
Thanks for the reponse, Brian...
 
I have the Details section opened up real big.
 
It teases me about drag/drop by looking like it's going to work, but the Details section acts like it's not a drop target ... I don't get the normal 'not a drop target' symbol, but dropping it doesn't do anything.
 
I can't drag between footers either.
 
Would be nice if I could just flip a switch somewhere and change a footer to a details... because that's all I'm really trying to accomplish.
 
The way it is now, it is appearing that I have to take a screenshot of the existing report, then rebuild the &#$ thing in the Details section.
 
If I have to do that, I'm not going to do it *inside* the main... who knows, I may have to do something again... I'll make it a .rpt file in Solution Explorer and just call it in.
 
At this point, having subreports contained inside a main report looks like a losing proposition to me and dang... I can't imagine how much time this is going to take me... :(
 
-Dave
MVP:Visual Developer - Client Application Development
http://www.wynapse.com | http://www.silverlightcream.com
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 30 Aug 2007 at 11:49am
There is definitely something wrong with the drag and drop. Do you have the latest SPs installed?

Re rebuilding.. if you have to do that, then rebuild it as a separate report within the project. Once it is finished, then add a subreport to the main section and reference that report. This takes a copy from the project and stores it inside the main report. This makes it easy for you to just build the report once and then use it as a subreport as many times as necessary. This might make things a bit easier (hopefully).
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
WynApse
Newbie
Newbie


Joined: 30 Aug 2007
Location: United States
Online Status: Offline
Posts: 5
Quote WynApse Replybullet Posted: 30 Aug 2007 at 12:08pm
It doesn't appear that the Service pack is installed... this is at a client location.
 
But looking at the list of bugs fixed in the service pack, I don't see anything associated with Crystal Reports.


Edited by WynApse - 30 Aug 2007 at 12:11pm
-Dave
MVP:Visual Developer - Client Application Development
http://www.wynapse.com | http://www.silverlightcream.com
IP IP Logged
WynApse
Newbie
Newbie


Joined: 30 Aug 2007
Location: United States
Online Status: Offline
Posts: 5
Quote WynApse Replybullet Posted: 30 Aug 2007 at 3:14pm
I don't understand why if I have a .rpt file and I insert it as a subreport that I then have no way to save any formatting I do back out to the .rpt file.
 
That would resolve this for me, and is part of the problem I have going. Some of these started as .rpt files, but they've been modified since then inside the main, and of course those changes don't/can't get written back out, so now when I try to insert the same one from the .rpt file, it's different.
 
This seems very awkward to use... definitely not user friendly :(
 
 
-Dave
MVP:Visual Developer - Client Application Development
http://www.wynapse.com | http://www.silverlightcream.com
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 30 Aug 2007 at 4:48pm
The version of CR in VS 2003 is a limited functionality release (i.e. free). They have the "Save As" feature for subreports in the CR XI standalone product.

This is a long-shot, but I wonder if you download the 30 day trial version and use that to open the report and then do the Save As for the sub-report. This might be a faster way of doing what you want. My only concern would be to do this on a test box or one without an existing CR installed b/c it could possible screw up your dev box with new DLLs overwriting the .NET DLLs. But if you have an non-dev box around there, it would be an easy thing to try.


Edited by BrianBischof - 30 Aug 2007 at 4:51pm
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
WynApse
Newbie
Newbie


Joined: 30 Aug 2007
Location: United States
Online Status: Offline
Posts: 5
Quote WynApse Replybullet Posted: 31 Aug 2007 at 9:20am
Thanks Brian...
 
I was afraid that was going to be my solution... that VS has a stripped out version.
 
I don't have a non-dev box either here or at the house, so I'm just going to have to suck it up and redo all these reports.
 
Guess it all pays the same :)
 
 
 
I have a question on creating the reports that I'm going to use as subreports now :)
 
The main report has a ruler across the top that appears to be in inches, and all subreports built inside that report are the same.
 
If, however, I go to Solution Explorer and add a new report, It looks like it's in Milimeters or something... and I'm missing where the setting is to change that....
 
Thanks!
 


Edited by WynApse - 31 Aug 2007 at 9:29am
-Dave
MVP:Visual Developer - Client Application Development
http://www.wynapse.com | http://www.silverlightcream.com
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 01 Sep 2007 at 1:47am
Sorry about having to redo the report. It's a bummer. But it sounds like you're a contractor being paid by the hour, so that helps out.

Re the millimeter thing, that is based on the regional settings you have set in the Control Panel. This was buggy for a bit and was ignoring your settings randomly, but I think it has been fixed now. Make sure you have the latest SP and make sure to shut down the computer after making the changes in your Control Panel.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.012 seconds.