Solved

Export Sub Report to Excel

Posted on 2013-12-09
6
2,609 Views
Last Modified: 2014-01-10
Hi there,

I have a report with four sub-reports one field in each) and now have to re-create the report so that it will export to excel.

Try as I might, these sub reports keep moving to the next rows below - does anyone have advice on how to make this come out on one line only?

Thanks,
CS
0
Comment
Question by:rporter45
  • 3
  • 2
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Make all the data be in the main report.

Crystal export to Excel is designed to put the subreport on the next line since it has the potential to use many lines.  There is no way to get it to remain on the same line with the main report

mlmcc
0
 

Author Comment

by:rporter45
Comment Utility
Hi there,

Thanks for the quick response.  The way the data comes out of the system, we have to use a sub report even for one line of data. (It's a nightmare I know!).  If I have even limited the line to one - does the above still apply.  It sounds sensible but just want to confirm.  

Thanks very much - have a good day!
CS
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
Comment Utility
It doesn't matter how much or little the subreport shows.

One way that might work would be to have the subreport return all the information you want displayed to the main report in shared variables then do the actual display in the main report.

To do that you need to put the subreport in its own section above where you want to display the information.
Make sure the subreport doesn't show anything.
    Suppress all section when blank
    Format the subreport to suppress if no data/blank (in the FORMAT subreport screen last tab I believe)
    Format the main report section to suppress when blank

You can right click the section the subreport is in
CLick INSERT SECTION BELOW
Left click the section in the left margin and drag it up so it is now above the section the subreport is in
Move the subreport up to the new section

mlmcc
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 22

Expert Comment

by:Ido Millet
Comment Utility
If you can't create a VIEW, SP, or Command to avoid the need for the subreport, another possibility is to use an SQL Expression (they can handle correlated query scenarios).
Alternatively, if you need to hit a different data source, there is at least one UFL that allows you to use Crystal formulas to run dynamic SQL expressions and return information from a data source even if it is not the same as the report.
0
 

Author Comment

by:rporter45
Comment Utility
Sorry for the delay in responding - Unfortunately the bridge between Crystal and the software that uses it does not support the use of SQL expressions :(  I have a couple that are exporting perfectly but wow does it take a long time to play with.  I will be back later today hopefully with the final outcome!

thank you - Colleen
0
 

Author Closing Comment

by:rporter45
Comment Utility
Hi there,

I was able to do so (although time consuming) with limiting output to one line, aligning the data exactly and exporting minimal information.  

Thank you -
Colleen
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

7 Experts available now in Live!

Get 1:1 Help Now