Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting SubReports Problem

Status
Not open for further replies.

Theadmans

Programmer
Oct 23, 2006
35
GB
I am using Crystal 8 I have manually added an unlinked SubReport to all the existing Crystal Reports in our application. Unfortunately now we have compiled the new version of our application we have found that the size of the new .EXE has grown unacceptably! This is obviously due to all the SubReports I have inserted to the 70 odd Reports in our application.

When I added the SubReport I did "Insert SubReport" and navigated to the previously written Crystal rpt file (which was my SubReport). After I inserted the SubReport I unticked the "Re-Import on Opening" option as I was concerned that re-importing may slow things down.

In order to reduce the size of the .EXE will ticking "Re-Import on opening" help or is the report still embedded. What is the best way of using a subreport but minimizing the size of my .EXE?
 
Make sure that neither the main nor the subreport have File-Save Data with Report turned on.

-k
 
Thanks for your reply Synapsevampire. I did have Save Data On in my SubReport - so I have switched this off now. This should help with the size of my EXE.

However, I was wondering if there is a way of making the SubReport appear on the Main Report without saving the SubReport as part of the Main Report. If I was to include the SubReport as part of my VB project (which I am not currently doing) - is there a way of refering to it in the Main report?
I am thinking that it is the fact that I am saving the SubReport (even without it's data) that is still making the EXE much larger.
 
AFAIK what you propose isn't possible, so unless you can get the subreport info on to the report(s) in some other way unfortunately your stuck with the file size increase.

If you let us know what the subreport is required for we may be able to provide an alternative suggestion.



Gary Parker
MIS Data Analyst
Manchester, England
 
Fair enough - thanks for confirming that this is not possible.

At the moment our application uses CRViewer to display the Crystal Reports which are part of our application i.e they written as Designers DSR/DSX files.

I am wondering whether to change this so that we call the Crystal Reports direct as Rpt files. I am a novice with Crystal - would someone be able to provide some VB code which would show how to use CRVIEWER to call a Crystal Rpt File. This will mean that we don't have to include the Crystal Reports as part of the EXE. I would like to store the Rpt files in a subdirectory of our main application folder.
 
If you do a search in the Business Objects: Crystal Reports 3 Integrate Forum there should be plenty of code snippets in there.

HTH

Gary Parker
MIS Data Analyst
Manchester, England
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top