• 大小: 0.07M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 监控  系统  打印机  打印  

资源简介

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.Management;











using System;
using System.Collections.Generic;
using System.Text;
using System.Printing;
using System.Collections;
using System.IO;





namespace WindowsFormsApplication1
{

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

        private void button1_Click(object sender EventArgs e)
        {
            if (comboBox1.Text == string.Empty)
                return;
            PrinterStatus ret = 0;
            string path = @“win32_printer.DeviceId=‘“

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-05 17:38  WindowsFormsApplication1\
     目录           0  2017-04-05 17:38  WindowsFormsApplication1\WindowsFormsApplication1\
     文件        5202  2017-04-06 12:11  WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
     文件        8179  2017-04-06 18:16  WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
     文件        6011  2017-04-06 12:11  WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
     文件         505  2013-07-17 16:59  WindowsFormsApplication1\WindowsFormsApplication1\Program.cs
     目录           0  2017-04-05 17:38  WindowsFormsApplication1\WindowsFormsApplication1\Properties\
     文件        1380  2013-07-17 16:59  WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件        2900  2013-07-17 16:59  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件        5612  2013-07-17 16:58  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx
     文件        1111  2013-07-17 16:59  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         249  2013-07-17 16:58  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings
     文件        3799  2013-07-18 11:18  WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj
     目录           0  2017-04-05 17:38  WindowsFormsApplication1\WindowsFormsApplication1\bin\
     目录           0  2017-04-05 17:38  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\
     文件       14336  2017-04-06 12:18  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       32256  2017-04-06 12:18  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       22984  2017-04-12 17:13  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件         490  2010-03-17 22:39  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
     目录           0  2017-04-05 17:38  WindowsFormsApplication1\WindowsFormsApplication1\obj\
     目录           0  2017-04-05 17:38  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\
     目录           0  2017-04-06 12:18  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\
     文件        8662  2017-04-06 11:50  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7362  2017-04-12 17:13  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2017-04-12 17:14  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\TempPE\
     文件         180  2017-04-06 12:11  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Form1.resources
     文件         180  2013-07-18 14:39  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources
     文件        2180  2017-04-12 17:13  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
     文件         975  2017-04-06 12:11  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache
     文件       19081  2017-04-05 17:39  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache
     文件       14336  2017-04-06 12:18  WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.exe
............此处省略4个文件信息

评论

共有 条评论