Solved

Export Sub Report to Excel

Posted on 2013-12-09
6
2,722 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
ID: 39707587
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
ID: 39708369
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
ID: 39708553
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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 22

Expert Comment

by:Ido Millet
ID: 39714031
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
ID: 39726682
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
ID: 39770736
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

810 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