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

SubReport not printing correct fields

Status
Not open for further replies.

ScouterRoger

Programmer
Apr 25, 2003
8
US
I am creating an invoice that has 3 lines of print per item sold on the main report. Each line item may or may not have extra charges that can appear under it. So I created a subreport to print these extra charges.
My problem is that the subreport is printing only the first set of charges on all line items, instead of printing the correct charges attached to a line.
My XML input is setup:
<Line>
<Charges>
<Charge_Item_Type>
<Charge_Item_Amount>
<Charge_Item_Qty>
</Charges>
<Charges>
....
</Charges>
</Line>
<Line>
...
</Line>

Suggestions on how to make this work right would be appreciated.
 
What data are you passing it? Also check your Selection Formula in the subreport, Crystal 8.5 will typically set any linked value as a selection criterion.

Madawc Williams
East Anglia, Great Britain
 
I'm new to this, so I forgot to say that I am running CR embedded within VB .Net.
At any rate, I checked the selection formula and figured out that I was linking the wrong fields together.
Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top