private void Imprimir() { Zk_MembresiasxfechaFinal Cry = new Zk_MembresiasxfechaFinal(); FrmReports Frm = new FrmReports(); try { int vRenova; // Cry.DataSourceConnections(1).SetConnection("counter","zkaccess","sa","12345"); Cry.SetDatabaseLogon("sa", "12345"); Cry.SetParameterValue("@base", "zkaccess"); Cry.SetParameterValue("@Fechainicio", DtpDesde.Text); Cry.SetParameterValue("@Fechafinal", DtpHasta.Text); Cry.SetParameterValue("@Renova", ChkRenova.Checked); Frm.crystalReportViewer1.ReportSource = Cry; Frm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void BntImprimir_Click(object sender, EventArgs e) { FrmReports f = new FrmReports(); Zk_Autorizado Cry = new Zk_Autorizado(); try { // Cry.DataSourceConnections("hp", "zkaccess", "sa", "12345"); Cry.SetDatabaseLogon("sa", "12345"); Cry.SetParameterValue("@base", "zkaccess"); Cry.SetParameterValue("@ID", vMembId); f.crystalReportViewer1.ReportSource = Cry; f.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void BntImprimir_Click(object sender, EventArgs e) { Zk_liquidacionDiaria Cry = new Zk_liquidacionDiaria(); FrmReports Frm = new FrmReports(); try { // Cry.DataSourceConnections(0).SetConnection("counter","zkaccess","sa","12345"); Cry.SetDatabaseLogon("sa", "12345"); Cry.SetParameterValue("@base", "zkaccess"); Cry.SetParameterValue("@empresa", "000"); Cry.SetParameterValue("@FechaDesde", DtpDesde.Text); Cry.SetParameterValue("@FechaHasta", DtpHasta.Text); Frm.crystalReportViewer1.ReportSource = Cry; Frm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void tsbReports_Click(object sender, EventArgs e) { tslMain.Text = ""; //FrmReports frmRegister = new FrmReports( // Convert.ToInt32(dgvCashAccounts.CurrentRow.Cells["BankAccountID"].Value.ToString()), // dgvCashAccounts.CurrentRow.Cells["AccountName"].Value.ToString()); FrmReports frmRegister = new FrmReports(); frmRegister.WindowState = FormWindowState.Maximized; frmRegister.MdiParent = this; frmRegister.Show(); tsbDownload.Enabled = true; }
private void btnRepReport_Click(object sender, EventArgs e) { FrmReports frmReports = new FrmReports(); frmReports.ShowDialog(); }