当前位置: 首页>>代码示例>>C#>>正文


C# ReportPrintTool类代码示例

本文整理汇总了C#中ReportPrintTool的典型用法代码示例。如果您正苦于以下问题:C# ReportPrintTool类的具体用法?C# ReportPrintTool怎么用?C# ReportPrintTool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ReportPrintTool类属于命名空间,在下文中一共展示了ReportPrintTool类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: barkodYazdir

 private void barkodYazdir()
 {
     int x = 1;
     etiketler.Clear();
     foreach (string item in listboxLabel.Items)
     {
         Etiket s = new Etiket();
         s.ID = x;
         s.Barkod = item;
         etiketler.Add(s);
         x++;
     }
     if (MessageBox.Show(string.Format("{0} adet barkod bulundu. Yazdırılacak emin misiniz ?", etiketler.Count), "Yazdırma", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
     {
         rptBarkod Rapor = new rptBarkod();
         Rapor.DataSource = etiketler;
         Rapor.PageWidth = (int)spWidth.Value;
         Rapor.PageHeight = (int)spHeight.Value;
         ReportPrintTool reportPrintTool = new ReportPrintTool(Rapor);
         reportPrintTool.ShowPreviewDialog();
     }
     else
     {
         return;
     }
 }
开发者ID:QTechnics,项目名称:QLTOLabel,代码行数:26,代码来源:frmMain.cs

示例2: btnPrintByCustomer_Click

        private void btnPrintByCustomer_Click(object sender, EventArgs e)
        {
            CustomersBO aCustomersBO = new CustomersBO();
            Customers aCustomer = new Customers();
            aCustomer = aCustomersBO.Select_ByID(int.Parse(loeListCustomer.EditValue.ToString()));
            this.aNewPaymentEN = this.aNewPaymentEN.SlipPaymentByCustomer(aCustomer);

            try
            {
                if (this.aNewPaymentEN.Status_BookingR == 8 || this.aNewPaymentEN.Status_BookingR == 7)
                {

                    frmRpt_Payment_BookingRs afrmRpt_Payment_BookingRs = new frmRpt_Payment_BookingRs(this.aNewPaymentEN);
                    ReportPrintTool tool = new ReportPrintTool(afrmRpt_Payment_BookingRs);
                    tool.ShowPreview();
                }
                else
                {
                    frmRpt_Payment_BookingRsUnPay afrmRpt_Payment_BookingRs = new frmRpt_Payment_BookingRsUnPay(this.aNewPaymentEN);
                    ReportPrintTool tool = new ReportPrintTool(afrmRpt_Payment_BookingRs);
                    tool.ShowPreview();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("frmTsk_ChoosePrintType.btnPrint_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_2307,代码行数:28,代码来源:frmTsk_ChoosePrintType.cs

示例3: Execute

        public void Execute()
        {
            try
            {
                if(Prizm.Main.Common.DateExtension.CheckDiapason(viewModel.WeldDateFrom, viewModel.WeldDateTo))
                {
                    viewModel.Data = repo.GetPipelineElements(viewModel.WeldDateFrom, viewModel.WeldDateTo);
                    if(viewModel.Data == null || viewModel.Data.Rows.Count <= 0)
                        log.Warn("Construction report: Data Table for Weld by Date report is NULL or empty");

                    var report = new WeldDateXtraReport();

                    report.DataSource = viewModel.WeldDateReportDataList;
                    report.FootersVisibility = viewModel.IsFooterVisible;
                    var tool = new ReportPrintTool(report);
                    tool.AutoShowParametersPanel = false;
                    tool.ShowPreview();

                    RefreshVisualStateEvent();
                }
                else
                {
                    notify.ShowInfo(Program.LanguageManager.GetString(StringResources.Message_FailureReportDate),
                        Program.LanguageManager.GetString(StringResources.Message_FailureReportDateHeader));
                    log.Warn("Date limits not valid!" + "Diapason: start date= "
                        + viewModel.WeldDateFrom.ToString() + " end date= " + viewModel.WeldDateTo.ToString());
                }
            }
            catch(RepositoryException ex)
            {
                log.Warn(this.GetType().Name + " | " + ex.ToString());
                notify.ShowWarning(Program.LanguageManager.GetString(StringResources.Notification_Error_Db_Message),
            Program.LanguageManager.GetString(StringResources.Notification_Error_Db_Header));
            }
        }
开发者ID:AleksMorozova,项目名称:prizm,代码行数:35,代码来源:CreateRepoCommand.cs

示例4: sbChiTietBaoCao_Click

        private void sbChiTietBaoCao_Click(object sender, EventArgs e)
        {
            BaoCaoNhapHang bc = new BaoCaoNhapHang();

            DataTable dt = gcChiTietBaoCao.DataSource as DataTable;
            if (dt != null && dt.Rows.Count > 0)
            {
                bc.ChiTietBaoCao = gcChiTietBaoCao.DataSource as DataTable;
                bc.ThoiGian = ((DateTime)deThoiGian.EditValue).ToString("MM/dd/yyyy");
                XRBaoCaoNhapHang BCTonKho = new XRBaoCaoNhapHang(bc);
                try
                {
                    BCTonKho.CreateDocument();
                }
                catch (Exception ex)
                {

                }
                ReportPrintTool printTool = new ReportPrintTool(BCTonKho);
                printTool.ShowPreviewDialog();
            }
            else
            {
                MessageBox.Show("Danh Sách Báo Cáo Trống",
                   "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            }
        }
开发者ID:TeamOOD,项目名称:QuanLyCuaHangBanLinhKienDienThoai,代码行数:27,代码来源:ucBaoCaoNhapHang.cs

示例5: simpleButton2_Click

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            BaoCaoBangHang bc = new BaoCaoBangHang();
            DataTable dt = gcKetQua.DataSource as DataTable;
            if (dt != null && dt.Rows.Count > 0)
            {
                bc.Data = gcKetQua.DataSource as DataTable;
                bc.MaNhanVien = this.teMaNhanVien.Text;
                bc.TenNhanVien = this.teNhanVien.Text;
                bc.TuNgay = this.dateTuNgay.Text;
                bc.DenNgay = this.dateDienNgay.Text;

                XRLapBaoCaoBanHang BCTonKho = new XRLapBaoCaoBanHang(bc);
                try
                {
                    BCTonKho.CreateDocument();
                }
                catch (Exception ex)
                {

                }
                ReportPrintTool printTool = new ReportPrintTool(BCTonKho);
                printTool.ShowPreviewDialog();
            }
            else
            {
                MessageBox.Show("Danh Sách Báo Cáo Trống",
                   "Thông Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            }
        }
开发者ID:TeamOOD,项目名称:QuanLyCuaHangBanLinhKienDienThoai,代码行数:30,代码来源:ucBaoCaoBanHang.cs

示例6: Print

 public void Print()
 {
     using (ReportPrintTool printTool = new ReportPrintTool(DocumentSource as XtraReport))
     {
         printTool.Print();
     }
 }
开发者ID:qrunner,项目名称:Default,代码行数:7,代码来源:InvoicePrintPreviewModel.cs

示例7: btnPrint_Click

 private void btnPrint_Click(object sender, EventArgs e)
 {
     ReportPrintTool pt = new ReportPrintTool(billReportView);
     pt.PrintingSystem.StartPrint +=
         new PrintDocumentEventHandler(printingSystem_StartPrint);
     pt.PrintDialog();
 }
开发者ID:OOAD-2015,项目名称:Hotel-Manager,代码行数:7,代码来源:frmViewBill.cs

示例8: Execute

 public void Execute()
 {
     if (Prizm.Main.Common.DateExtension.CheckDiapason(viewModel.StartDate, viewModel.EndDate))
     {
         try
         {
             data = repo.GetPipesFromInspection(viewModel.StartDate, viewModel.EndDate);
             IncomingReportsXtraReport report = new IncomingReportsXtraReport();
             SetDataSortByColumn("number");
             data.TranslateStatus<PartInspectionStatus>(SQLProvider.TableNameForInspectionReport, SQLProvider.ColumnNameForInspectionStatus, viewModel.localizedInspectionStatus);
             report.DataSource = data;
             report.FootersVisibility = viewModel.IsFooterVisible;
             report.CreateDocument();
             var tool = new ReportPrintTool(report);
             tool.AutoShowParametersPanel = false;
             tool.ShowPreview();
         }
         catch (RepositoryException ex)
         {
             log.Error(string.Concat(ex.InnerException.Message, ex.Message));
             notify.ShowFailure(ex.InnerException.Message, ex.Message);
         }
     }
     else
     {
         notify.ShowInfo(Program.LanguageManager.GetString(StringResources.Message_FailureReportDate),
             Program.LanguageManager.GetString(StringResources.Message_FailureReportDateHeader));
         log.Warn("Date limits not valid!" + "Diapason: start date= "
             + viewModel.StartDate.ToString() + " end date= " + viewModel.EndDate.ToString());
     }
 }
开发者ID:AleksMorozova,项目名称:prizm,代码行数:31,代码来源:CreateReportCommand.cs

示例9: DoPrint

        public static void DoPrint(string pono,bool t)
        {
            var dm = new PoDataManager();
            var rpt = new RptPO();
            if (t)
            {
                rpt.Watermark.Text = "Internal Copy";
            }
            else
            {
                rpt.Watermark.Text = "Supplier Copy";
                dm.UpdatePrint(pono);
            }
            rpt.Watermark.TextDirection = DirectionMode.ForwardDiagonal;
            rpt.Watermark.Font = new Font(rpt.Watermark.Font.FontFamily, 50);
            rpt.Watermark.ForeColor = Color.Gray;
            rpt.Watermark.TextTransparency = 150;
            rpt.Watermark.ShowBehind = false;
            rpt.Company = Utils.Companyname;
            var ds = dm.DoPrint(pono);
            rpt.DataSource = ds;
            ReportPrintTool printTool = new ReportPrintTool(rpt);
           // printTool.ShowPreviewDialog();
            printTool.ShowPreview();

           // rpt.Print();
        }
开发者ID:rehman922,项目名称:VIRETAIL,代码行数:27,代码来源:BLPO.cs

示例10: frmPrintBarcode

        public frmPrintBarcode(frmPrintBarcode _barcode) {
            try 
            {
                InitializeComponent();
                splashScreenManager1.ShowWaitForm();
                this.pBarocde = _barcode;
                sBundleTicket report = new sBundleTicket();
                rptBarcodeList s = new rptBarcodeList();
                OprationBarcodeList list = new OprationBarcodeList();

               //report.SetDataSource(list.StickerBarcodeList(pBarocde.Options, pBarocde.CutNo, pBarocde.From, pBarocde.To));

               //this.crystalReportViewer1.ReportSource = report;

                BarcodeLabel lbl = new BarcodeLabel();
                lbl.DataSource = list.StickerBarcodeList(pBarocde.Options, pBarocde.CutNo, pBarocde.From, pBarocde.To);
                ReportPrintTool tool = new ReportPrintTool(lbl);
                tool.ShowPreview();


                splashScreenManager1.CloseWaitForm();
            }catch(Exception ex)
            {
                MessageBox.Show(ex.Message);
                Debug.WriteLine(ex.Message);
            }
           
          
          
        }
开发者ID:nuwanprabath,项目名称:ITRACK,代码行数:30,代码来源:frmPrintBarcode.cs

示例11: Execute

        public void Execute()
        {
            try
            {
                viewModel.Data = repo.GetPipelineElements(
                    viewModel.PipeNumber,
                    viewModel.CheckedPipeTypes.Select<PipeMillSizeType, string>(x => x.Type).ToArray<string>());

                if(viewModel.Data == null || viewModel.Data.Rows.Count <= 0)
                    log.Warn(string.Format("Data Table for Pipe Report (pipe #{0}) report is NULL or empty", viewModel.PipeNumber));

                var report = new PipeConstructionXtraReport();

                report.DataSource = viewModel.PipeReportDataList;
                report.FootersVisibility = viewModel.IsFooterVisible;
                var tool = new ReportPrintTool(report);
                tool.AutoShowParametersPanel = false;
                tool.ShowPreview();

                RefreshVisualStateEvent();
            }
            catch(RepositoryException ex)
            {
                log.Warn(this.GetType().Name + " | " + ex.ToString());
                notify.ShowWarning(Program.LanguageManager.GetString(StringResources.Notification_Error_Db_Message),
            Program.LanguageManager.GetString(StringResources.Notification_Error_Db_Header));
            }
        }
开发者ID:AleksMorozova,项目名称:prizm,代码行数:28,代码来源:CreatePipeReportCommand.cs

示例12: GetData

        private void GetData(DateTime _fromDate,DateTime _toDate){
           try {
            
               var DataList =  from items in _OperationRepository.GetAll().ToList()

                              where items.Date >= _fromDate && items.Date >= _toDate

                               orderby items.WorkstationNo  
                               
                               select items;

               foreach (var pcs in DataList)
               {

                   lstProduction.Add(new HourlyIndividualProduction { EmployeeID=pcs.EmployeeID, Name=GetEmployeeNameByID(pcs.EmployeeID),   WorkstationNo=pcs.WorkstationNo,OperationNo=pcs.OperationNo,OperationName=pcs.OperationName,HourNo=pcs.HourNo,Efficiency=pcs.Efficiency,EarnSAH=pcs.SAH ,PCS=pcs.Pcs,Date=pcs.Date,StyleNo=pcs.StyleNo});
               
               }



               HourlyProductionByOperation report = new HourlyProductionByOperation();
               report.DataSource = lstProduction;
               ReportPrintTool tool = new ReportPrintTool(report);
               report.PrintingSystem.Document.AutoFitToPagesWidth = 1;
               tool.ShowPreview();


            }
            catch(Exception ex){
            
            }
        
        }
开发者ID:nuwanprabath,项目名称:ITRACK,代码行数:33,代码来源:frmIndividualProductionDialog.cs

示例13: btnListeYazdir_Click

        private void btnListeYazdir_Click(object sender, EventArgs e)
        {
            if (gvListe.FocusedRowHandle < 0) return;

              ReportPrintTool pt1 = new ReportPrintTool(
            InitReport(InitData())
            );
              pt1.ShowPreviewDialog();
        }
开发者ID:tolgakaradayi,项目名称:StokTakip,代码行数:9,代码来源:frmStokListe.cs

示例14: btnPrint_Click

        private void btnPrint_Click(object sender, EventArgs e)
        {
            // List<sp_BookingExt_GetAllBooking_Result> aListAllBookingEN = new List<sp_BookingExt_GetAllBooking_Result>();

            frmRpt_Revenues aReport = new frmRpt_Revenues(aListAllBookingEN, From,To,
                SumServiceHalls1_NotTax, SumServiceHalls2_NotTax, SumServiceHalls3_NotTax,
                SumServiceRooms1_NotTax, SumServiceRooms2_NotTax, SumServiceRooms3_NotTax);
            ReportPrintTool tool = new ReportPrintTool(aReport);
            tool.ShowPreview();
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:10,代码来源:frmTsk_AllRevenues.cs

示例15: ReportClick

 private void ReportClick(object sender, EventArgs e)
 {
     ArrayList v_arr_list = new ArrayList();
     v_arr_list.Add(new iParameter("iP_tieu_de_bao_cao", "BAO CAO DANH MUC MON HOC"));
     v_arr_list.Add(new iParameter("iP_trung_tam", "TO HOP GIAO DUC TOPICA"));
     v_arr_list.Add(new iParameter("iP_date_time", "Hà Nội, ngày 23 tháng 7 năm 2015"));
     BKI_QLTTQuocAnh.BaoCao.RPT_XtraReport v_xr = new BKI_QLTTQuocAnh.BaoCao.RPT_XtraReport(m_ds, m_grv, v_arr_list, System.Drawing.Printing.PaperKind.A4, true);
     ReportPrintTool v_xrpt = new ReportPrintTool(v_xr);
     v_xrpt.ShowPreview();
 }
开发者ID:phamngocphong,项目名称:BKI_DaoTaoNoiBo,代码行数:10,代码来源:f115_tong_quan.cs


注:本文中的ReportPrintTool类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。