コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReporteProducto2Crystal rpt = new ReporteProducto2Crystal();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        public ReporteProducto(List <Productos> lista)
        {
            InitializeComponent();
            ReporteProducto2Crystal reporte = new ReporteProducto2Crystal();

            reporte.SetDataSource(lista);
            ReportViewer.ReportSource = reporte;
            ReportViewer.Refresh();
        }