Solved

Export Sub Report to Excel

Posted on 2013-12-09
6
2,672 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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. …
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

25 Experts available now in Live!

Get 1:1 Help Now