private void BtnImprimare_Click(object sender, EventArgs e) { if (!this.lEcranInModificare) { return; } try { //Imprimare.frmImprimareDGV.Imprima(dgvListaDetaliat as CCL.UI.DataGridViewPersonalizat); string rptImprimare = CUtil.GetLocatieRapoarte(); rptImprimare += "RptListaRezumatVenituri.rpt"; StructParametriiRaport structParam = new StructParametriiRaport(); this.lRptDoc.Load(rptImprimare); structParam.lDataInceput = this.ctrlPerioada.DataInceput; structParam.lDataFinal = this.ctrlPerioada.DataSfarsit; structParam.lRptImprimare = rptImprimare; structParam.lRptDoc = setParamReportDocument(); structParam.lRptDoc.Load(rptImprimare); FormImprimareCReports.Afiseaza(this.GetFormParinte(), structParam); } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } }
private void SetareParametriiRaport(string pRptImprimare) { StructParametriiRaport structParam = new StructParametriiRaport(); this.lRptDoc.Load(pRptImprimare); structParam.lFactura = this.lFactura; structParam.lRptImprimare = pRptImprimare; structParam.lRptDoc = setParamReportDocument(); structParam.lRptDoc.Load(pRptImprimare); FormImprimareCReports.Afiseaza(this.GetFormParinte(), structParam); }
private void BtnImprima_Click(object sender, EventArgs e) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); if (this.dgvLista.SelectedRow != null) { BClientiFacturi factura = this.dgvLista.SelectedRow.Tag as BClientiFacturi; //Imprimare.CImprimareFacturaClient.Imprima(this.GetFormParinte(), factura); string rptImprimare = CUtil.GetLocatieRapoarte(); rptImprimare += "RptFacturaClient.rpt"; StructParametriiRaport structParam = new StructParametriiRaport(); this.lRptDoc.Load(rptImprimare); structParam.lFactura = factura; structParam.lRptImprimare = rptImprimare; structParam.lRptDoc = setParamReportDocument(); structParam.lRptDoc.Load(rptImprimare); FormImprimareCReports.Afiseaza(this.GetFormParinte(), structParam); } else { Mesaj.Afiseaza(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.SelectatiLinia)); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }