PDA

Click to See Complete Forum and Search --> : How do I print Sub-Reports with Main Report ?


TheBionicOrange
Mar 28th, 2006, 07:49 AM
I've got a report which shows Branch Information.
On each "Branch Page" there are 4 links. Each link when clicked shows a sub-report for that Branch.

How do I get the Sub-Reports to automatically print with the main report ?

Please don't tell me I have to print them all off separately !!

RobDog888
Mar 28th, 2006, 07:53 AM
You have to print them all off separately. :lol:


What if you did a .PrintOut on the SubReport after your main printout call?[/color]

TheBionicOrange
Mar 28th, 2006, 07:57 AM
I'm not writing any script for this report ... just designing like your average Noddy :)

RobDog888
Mar 28th, 2006, 07:58 AM
So its all in CR?

TheBionicOrange
Mar 28th, 2006, 08:03 AM
Yes it is.

Is that bad ?

(Its pretty bl**dy bad at the moment !)

TheBionicOrange
Mar 28th, 2006, 08:33 AM
uh-oh ... quiet is bad !

I can't believe theres not a "Print Sub-Report detail with main Detail" option anywhere !

Surely this isn't a mad request is it ??!

RobDog888
Mar 28th, 2006, 08:53 AM
I'm back. What version of CR?

TheBionicOrange
Mar 28th, 2006, 09:00 AM
version 9

TheBionicOrange
Mar 28th, 2006, 09:00 AM
I'm scouring the tinternet and can't find ANYTHING ?!?!!
That doesn't bode well !

RobDog888
Mar 28th, 2006, 11:16 AM
I searched the help file (8.5) and found a basic page but I think they are talking about a subreport that is embedded and displayed on the main report page.

I searched for "Print Subreport". Did you try businessobjects.com?

TheBionicOrange
Mar 29th, 2006, 01:29 AM
Yeah I had a snout around businessobjects.com, but could only find articles on passing variables backwards and forwards. I've sussed that bit out a few days ago.
I'm starting to hate Crystal Reports before I even get to grips with it !

brucevde
Mar 29th, 2006, 02:18 AM
Well, it would seem that an On-Demand subreport is just that. Nothing happens unless the user and/or program specifically calls it. But you are right, the option to "Print On-Demand Sub-Reports with main report" would be a nice feature.

TheBionicOrange
Mar 29th, 2006, 02:44 AM
I guess my next step would be to add some code to force the sub-reports to open if the top report is printed, but I'm not familiar at all with adding code.
Like I said ... I'm a complete newb at CR, so I wouldn't even know where to begin !

Is this something I could actually put in code somewhere do you know ?

RobDog888
Mar 29th, 2006, 07:07 AM
Well Im not a pro with CR but I dont think it has a section for code. You may need to use VB to automate this.

TheBionicOrange
Mar 29th, 2006, 07:10 AM
*groan*

RobDog888
Mar 29th, 2006, 07:12 AM
I know how you feel. I dont particularly care for CR. Its powerful but really really cumbersom to work with.Is there no way you can redesign the report to present the subreport by default instead of upon the link click?

TheBionicOrange
Mar 29th, 2006, 07:14 AM
I think I am going to have to !

ankeet1
Apr 4th, 2006, 11:51 AM
RobDog,
I have my report displaying the sub-report by default. But when I click on Print, the print screen just flashes by and nothing prints - does not even go in to Print Queue. Those reports where I have only the main report, print fine but this instance, where I have a sub-report, it does not even print the main report.

I have written a function to handle reports/subreports in CR from VB6. It still uses the default print button on CR Viewer to print the reports.