示例#1
0
        /// <summary>
        /// 打印文书
        /// </summary>
        protected override void Print()
        {
            CustomPrinter printer = new CustomPrinter(this, _paperSize, _pageFromHeight, _pagePrintHeight, _pageName);

            printer.EndPrint += new PrintEventHandler(printer_EndPrint);
            printer.Print();
        }
示例#2
0
        /// <summary>
        /// 上传PDF文件(和打印流程一样)
        /// </summary>
        /// <param name="fileName">PDF文件路径</param>
        protected void ExportPDF3(string fileName)
        {
            this.IsPrintEnd = false;
            CustomPrinter printer = new CustomPrinter(this, _paperSize, _pageFromHeight, _pagePrintHeight, _pageName);

            if (!printer.ExportPDF3(fileName))// 如果返回false则说明调用系统"Microsoft Print to PDF"失败了,采用原来的生成PDF方法
            {
                base.ExportPDF(fileName);
            }
        }
示例#3
0
        /// <summary>
        /// 集中打印
        /// </summary>
        protected override void Print(bool bMultiPrint)
        {
            CustomPrinter printer = new CustomPrinter(this, _paperSize, _pageFromHeight, _pagePrintHeight, _pageName);

            if (_needPostPDFWhenPrint)
            {
                printer.EndPrint += new PrintEventHandler(printer_EndPrint);
            }
            printer.Print(bMultiPrint);
            //base.Print(bMultiPrint);
        }