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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use value from subreport to make new page

Status
Not open for further replies.

Hakana

Programmer
Joined
Dec 29, 2006
Messages
9
Location
SE
Hi

I have a report that presents artikels (details) and groups first by Ordrnr and then by a lower ordernr.
If these artikels (details) have material connected i presents these materials in a subreport.

Now if these connested materials should happen to be another artikel ( detail) i want to print a new set of the main report with subreports.

(This should mean that this artikel (detail) connected is not a material but is a struktur och details with connected materials. These connected details also needs a main report with a subreport presenting that artikels connected material.)


Is this possible?

/Hakana
 
Try posting technical information rather than trying to explain it:

Crystal version
Database
Example data
Expected output

-k
 
Ok, thanks for suggestion.

Well.

In my main report I have groups and below the second group there is a subreport.

This subreport presents information regarding the details in the main report.

My question is this:
Can I add another subreport (or use the one above) that calls the main report again?
Or in worts case can i make a subreport of my main report and add it, and make some selection. (lot to correct if I change something.)

Hope this was better.

/Hakana
 
It's still a little unclear what you want to achieve here, as SV sdaid you would be better served posting some example data and the expected outcome.

As far as I can tell you want to have a subreport within a subreport and this can't be done in CR

HTH

Gary Parker
MIS Data Analyst
Manchester, England
 
Hi and thanks for taking time.

I will try to make it clearer.

[ img ]

I want to make the same report again if there is a specific outcome from the first subreport(material).
I have tried to enter the selection into the subreport Ing1930artiklar whith no luck.

If i can get the result from the first subreport and enter that in the other I want to print out the same report as the main but with incoming of only one record at a time.

/Hakana
 
Your preference to ignore requested information and chit-chat about requirements rather than supplying technical information is your biggest problem,andthe language barrier doesn't help.

In generalsubreports shouod be avoided, you might consider that someone here might take a different apporach to meeting requirementsandsupply what you have and what you need.

Look at what I asked for, and how you responded.

-k
 
If I'm following you, you could set up the second subreport to be suppressed if the first subreport result does not meet your criterion. You could set up a shared variable in the first subreport to capture the result, e.g.:

whileprintingrecords;
shared stringvar sub1result := maximum({table.string});

Then place the second subreport in its own section below the first, and go to the section expert of the main report and select the section containing the second subreport->suppress->x+2 and reference the shared variable in order to conditionally suppress the section containing the subreport whenever the variable does not meet your criterion, as in:

whileprintingrecords;
shared stringvar sub1result;
sub1result <> "your criterion"

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top