PDA

Click to See Complete Forum and Search --> : Crystal Report / Sub Report


dfowler40
May 12th, 2007, 02:53 PM
Hello,

I am not new to programming but new to Crystal Reports for VS 2005 for the web. I have successfully been able to create a report programmically. However I am having some serious issues with trying to get a subreport programmically.

I created a parameter value that links one of the main reports fields with the subreport. When I build the report I see nothing.

Should I have some code behind to handle this? The only thing I have in my code behind is the code that creates the dataset that binds to the main report. I cant include the subreport fields here as they would throw off the query for the main report.



Thanks,

David Fowler

Please let me know if you need code, DB, etc.

si_the_geek
May 12th, 2007, 02:58 PM
Thread moved from FAQ forum

dfowler40
May 12th, 2007, 03:00 PM
Sorry, where should I place tghis request??

David Fowler

si_the_geek
May 13th, 2007, 09:50 AM
The Reporting forum - which I have already moved it to. :)

Hopefully somebody who can help with this will post soon.

mabbas110
May 16th, 2007, 02:26 AM
Can u try this report without sub report and then let know that r u getting the result or not and if u are then pls give me the query of main and sub report is possible.

dfowler40
May 16th, 2007, 08:07 AM
I have gotten this to work by exposing the subreport fields and then linking a common field to one in the main report. My question originally was how do I do this programmically. My solution works but I searched all over the net for how to do it programmically yet, still havent found it. Could you shead some light as to how to do this at run time?