private void LadVitalItemReport() { VitalReport vitalReport = new VitalReport(CurrentContext.LoggedInUserName); var x = new ReceiveDoc(); DataView dv = new DataView(x.VitalReport(Convert.ToInt32(cbYear.SelectedItem), Convert.ToInt32(cbMonth.SelectedIndex + 1), Convert.ToInt32(cbToYear.SelectedItem), Convert.ToInt32(cbToMonth.SelectedIndex + 1), Convert.ToInt32(lkMode.EditValue), CurrentContext.UserId, Convert.ToInt32(lkCategories.EditValue))); vitalReport.DataSource = dv; vitalReport.xrAccount.Text = string.Format("{0}", lkMode.Text); vitalReport.xrCategory.Text = string.Format("{0}", lkCategories.Text); vitalReport.xrFromDate.Text = string.Format("{0} {1}", cbMonth.SelectedItem, cbYear.SelectedItem); vitalReport.xrToDate.Text = string.Format("{0} {1}", cbToMonth.SelectedItem, cbToYear.SelectedItem); printControl1.PrintingSystem = vitalReport.PrintingSystem; report = vitalReport; vitalReport.CreateDocument(); }