public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteInventario rpt = new ReporteInventario();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        public ContenedorReporteInventario()
        {
            InitializeComponent();
            PrintDialog printDialog = new PrintDialog();

            if (printDialog.ShowDialog() == DialogResult.OK)
            {
                ReporteInventario reporte = new ReporteInventario();
                reporte.Refresh();
                reporte.Load(Application.StartupPath + "\\ReporteInventario.rpt");
                reporte.PrintOptions.PrinterName = printDialog.PrinterSettings.PrinterName;
                reporte.PrintToPrinter(printDialog.PrinterSettings.Copies, printDialog.PrinterSettings.Collate, printDialog.PrinterSettings.FromPage, printDialog.PrinterSettings.ToPage);
            }
            this.Close();
        }