Esempio n. 1
0
 //Da todos los parametros del la ventana del cristal report
 //se agrega solo cuando se colo el diseño en la parte del diseño
 private void InitializeComponent()
 {
     this.crystalReportViewer1 = new CrystalDecisions.Windows.Forms.CrystalReportViewer();
     this.inventario_def1      = new Proyecto_Tecate.inventario_def();
     this.SuspendLayout();
     //
     // crystalReportViewer1
     //
     this.crystalReportViewer1.ActiveViewIndex = 0;
     this.crystalReportViewer1.BorderStyle     = System.Windows.Forms.BorderStyle.FixedSingle;
     this.crystalReportViewer1.Cursor          = System.Windows.Forms.Cursors.Default;
     this.crystalReportViewer1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.crystalReportViewer1.Location        = new System.Drawing.Point(0, 0);
     this.crystalReportViewer1.Name            = "crystalReportViewer1";
     this.crystalReportViewer1.ReportSource    = this.inventario_def1;
     this.crystalReportViewer1.Size            = new System.Drawing.Size(956, 635);
     this.crystalReportViewer1.TabIndex        = 0;
     this.crystalReportViewer1.ToolPanelView   = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
     this.crystalReportViewer1.Load           += new System.EventHandler(this.crystalReportViewer1_Load_1);
     //
     // Reporte
     //
     this.ClientSize = new System.Drawing.Size(956, 635);
     this.Controls.Add(this.crystalReportViewer1);
     this.Name  = "Reporte";
     this.Load += new System.EventHandler(this.Reporte_Load_1);
     this.ResumeLayout(false);
 }
Esempio n. 2
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            inventario_def rpt = new inventario_def();

            rpt.Site = this.Site;
            return(rpt);
        }