Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rpCreditodelaCasa rpt = new rpCreditodelaCasa();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        public void ImprimirCredito(string xCedula, string xAutorizacion, decimal xImporte)
        {
            ReportDocument rptDoc;

            rptDoc = new rpCreditodelaCasa();
            rptDoc.PrintOptions.PrinterName.ToString();
            TextObject Campo;

            Campo      = (TextObject)rptDoc.ReportDefinition.ReportObjects["txtDocumento"];
            Campo.Text = xCedula;

            Campo      = (TextObject)rptDoc.ReportDefinition.ReportObjects["txtImporte"];
            Campo.Text = String.Format(CultureInfo.InvariantCulture, "{0:0,0.00}", xImporte);

            Campo      = (TextObject)rptDoc.ReportDefinition.ReportObjects["txtAut"];
            Campo.Text = xAutorizacion;

            rptDoc.PrintToPrinter(0, false, 0, 0);
        }