Link to home
Start Free TrialLog in
Avatar of srpraju
srpraju

asked on

data is not generating from subreports ,when executed.

data is not generating in subreports
i have a filter form prior to rpt generatring, where upon entering or selecting the data the rpt will be generated , but
 when i run rpt i am able to get the values in main rpt , but not in subreports
here these subreports r linked with a field to main rpt which is from a view
and basing upon that field these subrept will generate values frm 4 tables (i have given links to tables)
i have some param.'s  basing on those values iam supreesing these subrpts when reqd
so here my doubt

data src info. should be given to subrpts r not  which r linked with main rpts n these sub rpts has no parameters to pass , all that reqd. defined as formulas in rpt.
if data src info should be given to sub rept , then how  ,
is this the exact prob. why data is not passing into subrpts , when executed.

Avatar of srpraju
srpraju

ASKER

i got the answer , datasource info should be given to the subreports ,
create a reort class object// rptobj
create a subreport document//rptsub
and proceed with this code

 rptsub = rptobj.Subreports.Item("Name_Sub.rpt")
                    rptsub.SetDataSource(Data base table or dataset)
it works fine
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial