• 大小: 0.19M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.IO;
using System.Collections;

namespace PrintOneCertificate
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        #region 定义全局变量及对象
        Image imgPhoto = null;
        Brush myBrush = new SolidBrush(Color.Black);
        Pen mypen = new Pen(Color.Black);
        Font myFont = new Font(“宋体“ 10);
        #endregion

        //设置打印内容
        private void printDocument1_PrintPage(object sender System.Drawing.Printing.PrintPageEventArgs e)
        {
            imgPhoto = Image.FromFile(“photo.bmp“);
            int printWidth = e.PageBounds.Width;
            int printHeight = e.PageBounds.Height;
            //绘制矩形边框
            e.Graphics.DrawRecta

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         947  2009-02-10 10:22  sj\01\PrintOneCertificate\PrintOneCertificate.sln
     文件       17920  2009-02-10 10:32  sj\01\PrintOneCertificate\PrintOneCertificate.suo
     文件        5490  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\Form1.cs
     文件        3780  2009-02-10 10:30  sj\01\PrintOneCertificate\PrintOneCertificate\Form1.designer.cs
     文件       21941  2009-02-10 10:28  sj\01\PrintOneCertificate\PrintOneCertificate\Form1.resx
     文件        3749  2009-02-10 10:24  sj\01\PrintOneCertificate\PrintOneCertificate\PrintOneCertificate.csproj
     文件         500  2009-02-10 10:22  sj\01\PrintOneCertificate\PrintOneCertificate\Program.cs
     文件       28280  2008-04-30 13:36  sj\01\PrintOneCertificate\PrintOneCertificate\bin\Debug\photo.bmp
     文件       22528  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\bin\Debug\PrintOneCertificate.exe
     文件       22016  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\bin\Debug\PrintOneCertificate.pdb
     文件       14328  2009-02-10 10:30  sj\01\PrintOneCertificate\PrintOneCertificate\bin\Debug\PrintOneCertificate.vshost.exe
     文件         976  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\obj\Debug\PrintOneCertificate.csproj.FileListAbsolute.txt
     文件         847  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\obj\Debug\PrintOneCertificate.csproj.GenerateResource.Cache
     文件       22528  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\obj\Debug\PrintOneCertificate.exe
     文件       10728  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\obj\Debug\PrintOneCertificate.Form1.resources
     文件       22016  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\obj\Debug\PrintOneCertificate.pdb
     文件         180  2009-02-10 10:31  sj\01\PrintOneCertificate\PrintOneCertificate\obj\Debug\PrintOneCertificate.Properties.Resources.resources
     文件        1394  2009-02-10 10:22  sj\01\PrintOneCertificate\PrintOneCertificate\Properties\AssemblyInfo.cs
     文件        2888  2009-02-10 10:22  sj\01\PrintOneCertificate\PrintOneCertificate\Properties\Resources.Designer.cs
     文件        5612  2009-02-10 10:22  sj\01\PrintOneCertificate\PrintOneCertificate\Properties\Resources.resx
     文件        1104  2009-02-10 10:22  sj\01\PrintOneCertificate\PrintOneCertificate\Properties\Settings.Designer.cs
     文件         249  2009-02-10 10:22  sj\01\PrintOneCertificate\PrintOneCertificate\Properties\Settings.settings
     文件         953  2009-02-10 10:32  sj\02\PrintEmptyCertificate\PrintEmptyCertificate.sln
     文件       19968  2009-02-10 10:35  sj\02\PrintEmptyCertificate\PrintEmptyCertificate.suo
     文件        4673  2009-02-10 10:34  sj\02\PrintEmptyCertificate\PrintEmptyCertificate\Form1.cs
     文件        3770  2009-02-10 10:34  sj\02\PrintEmptyCertificate\PrintEmptyCertificate\Form1.designer.cs
     文件       21941  2009-02-10 10:34  sj\02\PrintEmptyCertificate\PrintEmptyCertificate\Form1.resx
     文件        3788  2009-02-10 10:34  sj\02\PrintEmptyCertificate\PrintEmptyCertificate\PrintEmptyCertificate.csproj
     文件         502  2009-02-10 10:32  sj\02\PrintEmptyCertificate\PrintEmptyCertificate\Program.cs
     文件       22016  2009-02-10 10:34  sj\02\PrintEmptyCertificate\PrintEmptyCertificate\bin\Debug\PrintEmptyCertificate.exe
     文件       22016  2009-02-10 10:34  sj\02\PrintEmptyCertificate\PrintEmptyCertificate\bin\Debug\PrintEmptyCertificate.pdb
............此处省略34个文件信息

评论

共有 条评论