Ejemplo n.º 1
0
        private void toolStripButtonPrint_Click(object sender, EventArgs e)
        {
            Report report = new Report();

            report.ReportPages.Capacity = 1;
            ReportPage        reportPage = new ReportPage();
            ReportPictureItem reportItem = new ReportPictureItem();

            reportItem.Picture      = CurrentImage;
            reportItem.OldImageSize = reportItem.Picture.Size;
            reportItem.Bounds       = new Rectangle(new Point(0, 0), reportItem.Picture.Size);
            reportPage.ReportItems.Add(reportItem);
            report.ReportPages.Add(reportPage);
            reportFrom = new ReportForm(report);
            reportFrom.Show();
        }