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 displayed

Status
Not open for further replies.

jmerencilla

Programmer
Jul 17, 2002
123
SG
hi. i am using VS .Net as development tool for my crystal reports. i created a simple report with a subreport. their respective data come from 2 simple stored proc on my Oracle DB. testing each report gives me the desired results but i have problem integrating them. i made the necessary connections that links them but only the main report is displayed. what am i missing here? would you guys know? thanks. :)
 
Hi,
It is an 'on-demand' sub-report and, if so, are you clicking on the correct field to get it to display?

Any errors?

[profile]
 
hi turkbear. i made my subreport on-demand but to no avail. when i viewed it, it simply displayed my subreport name underlined (similar to a hyperlink but not clickable). i'm totally lost. i followed all instruction from a resouce manual i downloaded from crystal decisions' website but still no output. here's my algorithm:

1. create the instances of main and subreport
2. call the stored proc for sub; for main.
3. set the parameters for the main report.
4. bind main report to the web form.

as you can see, my problem is i dont know how to bind my subreport to my main report programmatically. i simply assumed that this is done by crystal report automatically. but during runtime, only the main report is displayed. i suspect this is the reason why i dont see my subreport despite the fact that all necessary connections, etc were done at designtime. would you know how? thanks. :)
 
Hi,
did you do the following?
On the main report page that contains your subreport, right-click on the subreport and choose 'change sub-report links' - this is how you tie the 2 together..

[profile]
 
thanks turkbear. yup. i joined them using the 'change subreport link'. but still no output. i think i have to code something but i dont know what. would you know? thanks again. :)
 
Hi, One more test..Create a new report and just Join the SP's output( treat them like 2 tables) on the same field you use to link the subreport...see if you get data ( perhaps the 'linked' fields do not actually match ( char v Varchar2 for instance))

[profile]

ps ( Both SPs return a Ref Cursor, right?)

 
thanks again. what i did was when i called my sp (with the parameters), i return a data reader. then i converted this into a data table. afterwards, i set the report parameters, and finally, set the crystal report viewer control's datasource to the report object. doing this same process for both the main and subreport individually, yeilds the desired output. my problem is i know not how to join the two dataset. would you show me (codes pls.) how to join the main and subreport data from my stored proc? thanks. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top