shahrzad87
پنج شنبه 19 آبان 1390, 10:33 صبح
سلام .
من کد زیر رو نوشتم اما توی خط
R.SetParameterValue(0, ((
new persianDate(DateTime.Now)).simpleDate()));
این پیغام خطا رو می ده.
private
void btn_report_Click(object sender, EventArgs e)
{
ReportDocument R = new ReportDocument();
R.FileName =
"CR_phoneBook.rpt";
R.SetParameterValue(0, ((
new persianDate(DateTime.Now)).simpleDate()));
R.SetParameterValue(1, ((
new persianDate(DateTime.Now).time())));
Person prsn = new Person();
PersonsMobileNum Tmob = new PersonsMobileNum();
prsn.name = txt_name.Text;
prsn.family = txt_family.Text;
prsn.jobTitle = txt_jobTitle.Text;
prsn.fieldOfJob = txt_FieldOfActivity.Text;
Tmob.mobile = txt_mobile.Text;
R.SetDataSource((
new MyClass()).searchInPhoneBook(prsn, Tmob));
Crv.ReportSource = R;
}
من کد زیر رو نوشتم اما توی خط
R.SetParameterValue(0, ((
new persianDate(DateTime.Now)).simpleDate()));
این پیغام خطا رو می ده.
private
void btn_report_Click(object sender, EventArgs e)
{
ReportDocument R = new ReportDocument();
R.FileName =
"CR_phoneBook.rpt";
R.SetParameterValue(0, ((
new persianDate(DateTime.Now)).simpleDate()));
R.SetParameterValue(1, ((
new persianDate(DateTime.Now).time())));
Person prsn = new Person();
PersonsMobileNum Tmob = new PersonsMobileNum();
prsn.name = txt_name.Text;
prsn.family = txt_family.Text;
prsn.jobTitle = txt_jobTitle.Text;
prsn.fieldOfJob = txt_FieldOfActivity.Text;
Tmob.mobile = txt_mobile.Text;
R.SetDataSource((
new MyClass()).searchInPhoneBook(prsn, Tmob));
Crv.ReportSource = R;
}