Esempio n. 1
0
        /// <summary>
        /// 打印
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPrint_Click(object sender, EventArgs e)
        {
            KPS.Model.GouJinInfo _Modelinfo = (KPS.Model.GouJinInfo)_control.GetSaveData();
            ListPrint            print      = new ListPrint(_Modelinfo);

            print.ShowDialog();
        }
Esempio n. 2
0
        /// <summary>
        /// 打印预览
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PrintTol_List_Click(object sender, EventArgs e)
        {
            //this.listViewPrinter1.CellFormat = null;
            //this.listViewPrinter1.ListFont = new Font("Ms Sans Serif", 9);
            //this.listViewPrinter1.ListGridPen = new Pen(Color.DarkGray, 0.5f);

            //this.listViewPrinter1.HeaderFormat = BlockFormat.Header(new Font("Verdana", 24, FontStyle.Bold));
            //this.listViewPrinter1.HeaderFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.DarkBlue, Color.White, LinearGradientMode.Horizontal);

            //this.listViewPrinter1.FooterFormat = BlockFormat.Footer();
            //this.listViewPrinter1.FooterFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.White, Color.DarkBlue, LinearGradientMode.Horizontal);

            //this.listViewPrinter1.GroupHeaderFormat = BlockFormat.GroupHeader();
            //this.listViewPrinter1.ListHeaderFormat = BlockFormat.ListHeader(new Font("Verdana", 12));

            //this.listViewPrinter1.WatermarkFont = null;
            //this.listViewPrinter1.WatermarkColor = Color.Empty;

            //this.listViewPrinter1.PrintPreview();
            ListPrint newprint = new ListPrint(ThisList);

            newprint.ShowDialog();
        }
Esempio n. 3
0
 /// <summary>
 /// 打印
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     KPS.Model.GouJinInfo _Modelinfo = (KPS.Model.GouJinInfo)_control.GetSaveData();
     ListPrint print = new ListPrint(_Modelinfo);
     print.ShowDialog();
 }
Esempio n. 4
0
        /// <summary>
        /// 打印预览
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PrintTol_List_Click(object sender, EventArgs e)
        {
            if (ThisType == EntryType.Inventory)
            {
                if(ThisList is List<Model.GouJinInfo>)
                {
                    ListPrint print = new ListPrint((List<Model.GouJinInfo>)ThisList);
                    print.ShowDialog();
                }

            }
            else
            {
                this.listViewPrinter1.CellFormat = null;
                this.listViewPrinter1.ListFont = new Font("Ms Sans Serif", 9);
                this.listViewPrinter1.ListGridPen = new Pen(Color.DarkGray, 0.5f);

                this.listViewPrinter1.HeaderFormat = BlockFormat.Header(new Font("Verdana", 24, FontStyle.Bold));
                this.listViewPrinter1.HeaderFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.DarkBlue, Color.White, LinearGradientMode.Horizontal);

                this.listViewPrinter1.FooterFormat = BlockFormat.Footer();
                this.listViewPrinter1.FooterFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.White, Color.DarkBlue, LinearGradientMode.Horizontal);

                this.listViewPrinter1.GroupHeaderFormat = BlockFormat.GroupHeader();
                this.listViewPrinter1.ListHeaderFormat = BlockFormat.ListHeader(new Font("Verdana", 12));

                this.listViewPrinter1.WatermarkFont = null;
                this.listViewPrinter1.WatermarkColor = Color.Empty;

                this.listViewPrinter1.PrintPreview();
            }
        }
        /// <summary>
        /// 打印预览
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PrintTol_List_Click(object sender, EventArgs e)
        {
            //this.listViewPrinter1.CellFormat = null;
             //this.listViewPrinter1.ListFont = new Font("Ms Sans Serif", 9);
             //this.listViewPrinter1.ListGridPen = new Pen(Color.DarkGray, 0.5f);

             //this.listViewPrinter1.HeaderFormat = BlockFormat.Header(new Font("Verdana", 24, FontStyle.Bold));
             //this.listViewPrinter1.HeaderFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.DarkBlue, Color.White, LinearGradientMode.Horizontal);

             //this.listViewPrinter1.FooterFormat = BlockFormat.Footer();
             //this.listViewPrinter1.FooterFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.White, Color.DarkBlue, LinearGradientMode.Horizontal);

             //this.listViewPrinter1.GroupHeaderFormat = BlockFormat.GroupHeader();
             //this.listViewPrinter1.ListHeaderFormat = BlockFormat.ListHeader(new Font("Verdana", 12));

             //this.listViewPrinter1.WatermarkFont = null;
             //this.listViewPrinter1.WatermarkColor = Color.Empty;

             //this.listViewPrinter1.PrintPreview();
            ListPrint newprint = new ListPrint(ThisList);
            newprint.ShowDialog();
        }