private void button1_Click(object sender, EventArgs e) { CrystalReports.crptHelloWorld crpt = new CrystalReports.crptHelloWorld(); crpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Portrait; crpt.PrintToPrinter(1, false, 0, 0); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crptHelloWorld rpt = new crptHelloWorld(); rpt.Site = this.Site; return(rpt); }
private void report_Load(object sender, EventArgs e) { CrystalReports.crptHelloWorld crpt = new CrystalReports.crptHelloWorld(); crvHelloworld.ReportSource = null; crvHelloworld.ReportSource = crpt; dgvItem.AutoGenerateColumns = false; using (HarithmaSalesEntities db = new HarithmaSalesEntities()) { dgvItem.DataSource = db.Items.ToList(); } /* * CrystalReports.crptItem crptItem = new CrystalReports.crptItem(); * crv2.ReportSource = null; * crv2.ReportSource = crptItem; */ }