If you give brief detail of your question. we can understand it better.
----------------------------------------------------------------------
but as for your this question:-
save the data retrieved from session in an varaible.
use the parameters in crystal reports for text fields and parameters fields.
Try this code for showing the data in parameters:-
Declarative :-
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
using CrystalDecisions.Windows.Forms;
using CrystalDecisions.ReportSource;
code part:-
Objects Declarations:-
ParameterFields paramFields = new ParameterFields();
ParameterField paramField;
ParameterDiscreteValue paramDiscreteValue;
Inq_Report2 objRpt;
use this function:-
'int i' refers to parameters no., and 'string e' refers to the value which you want to show.
public void runtime_param(int i, string e)
{
paramField = new ParameterField();
paramField.Name = "col" + i.ToString();
paramDiscreteValue = new ParameterDiscreteValue();
paramDiscreteValue.Value = e;
paramField.CurrentValues.Add(paramDiscreteValue);
paramFields.Add(paramField);
}
on
void button1_click()
{
runtime_param(3, "session data");
crystalReportViewer1.ParameterFieldInfo = paramFields;
where 'ds' is a dataset if you want to use.
objRpt.SetDataSource(ds);
crystalReportViewer1.ReportSource = objRpt;
con.Close();
}
-------------------------------------------------------------------------------
if you have any problem just tell.
Good Regards for your problem.