i am using this code for the main report it is working super but what can i write for the subreports ???
MeetingManagement.frm_meet_preview frmReport= new MeetingManagement.frm_meet_preview ();
string path=Application.StartupPath+ "\\"+ "Report_met_prevw.rpt";
frmReport.ReportViewer.ReportSource =path;
//'The Parameters in the report
CrystalDecisions.Shared.ParameterField ParamterField =new CrystalDecisions.Shared.ParameterField();
//'A collection of parameters is a parameter field
CrystalDecisions.Shared.ParameterFields ParamterFields =new CrystalDecisions.Shared.ParameterFields();
// 'Every parameter has a descrete value
CrystalDecisions.Shared.ParameterDiscreteValue ParamterDescreteValue = new CrystalDecisions.Shared.ParameterDiscreteValue();
// 'Now each of these parameters should be added a meaning
ParamterField.ParameterFieldName = "mmid";
//'Each of these parameters should be given a starting value
ParamterDescreteValue.Value = hidtxt_mmid.Text.Trim ();
//'All these values should be added to parameter field
ParamterField.CurrentValues.Add(ParamterDescreteVa lue);
//'Finally all these parameters should be added to the report
ParamterFields.Add(ParamterField);
//'ParameterInfo has been given all the information needed
frmReport.ReportViewer.ParameterFieldInfo = ParamterFields;
//'frmReport.MdiParent = Me.Parent.FindForm()
frmReport.Show();
|