精华内容
下载资源
问答
  • 调用打印机

    2018-03-03 22:31:29
    delphi调用打印机,设置打印机,并用选择的打印机打印richedit中的内容
  • winform调用打印机winform调用打印机winform调用打印机
  • java调用打印机

    2016-12-17 08:50:09
    java调用打印机
  • c#调用打印机

    2018-05-04 14:00:35
    C#调用打印机,并且固定大小,用于小票打印等各种领域
  • lodop 调用打印机

    热门讨论 2014-07-21 17:26:27
    调用打印机,js调用,兼容各类浏览器,功能强大齐全
  • js调用打印机

    2018-06-13 17:30:51
    js调用打印机打印,可自己设置样式,。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
  • PrintImage.exe是一个调用打印机后台打印的应用,相关使用方法及代码在博客里面(见Unity调用打印机打印图片)
  • C#调用打印机打印

    2019-04-11 13:52:37
    C#调用打印机打印程序自动 ,C#开发使用,测试版 。
  • 背景新零售业务开始以来,一些线下商品上架售卖的同时,要明确售卖价格,前期人工人肉写标签贴上商品售卖价,容易产生疏忽,导致所标售...涉及技术web端调用打印机运行环境由于功能比较紧急投入使用,这里仅考虑c...

    背景

    新零售业务开始以来,一些线下商品上架售卖的同时,要明确售卖价格,前期人工人肉写标签贴上商品售卖价,容易

    产生疏忽,导致所标售卖价与收银所收价格不统一,造成顾客疑惑(据说还因为被投诉,上了新闻-_-)。为了使价格

    标识更为准确,现提供中台查询相应商品价格,并根据系统查询价格打印价格标签,可以有效避免因为人工疏忽大意

    造成价格误差。

    涉及技术

    web端调用打印机

    运行环境

    由于功能比较紧急投入使用,这里仅考虑chrome浏览器

    优点

    由前端来做打印功能,可快速实现功能的上线与迭代

    缺点

    由于打印参数都写在浏览器源码之中,js调用打印机,不能设定打印份数等参数

    js实现方案与细节

    window.print(),其实就是浏览器打印程序的一种调用,与直接点击打印功能效果一样,不能设置默认打印份数

    及选择使用的默认纸张类型等参数,只是省区用户去菜单里找到打印按钮的分所操作,可以直接点击页面上的打印

    按钮进行操作。浏览器默认打印浏览器页面之中所有的内容,利用这个特性,想要实现打印出期望的样式,可以有

    如下几个方法:

    1、点击调用打印功能时,将不需要打印的元素隐藏起来,例如:

    image2020-3-8_12-14-6.png?version=1&modificationDate=1583640848000&api=v2

    但是如果页面元素过多的话,要操作很多dom元素,所以这种方法不适用大多数场景

    2、将需要打印的元素包装进一个元素下面,具体步骤:

    先将页面完整的dom保存至一个中间变量

    获取打印元素dom对象

    将当前页面的body.innerHTML替换为打印目标元素

    唤起打印操作

    点击打印或取消打印之后,重新将第一步保存的页面dom赋给body.innerHTML

    reload当前页面

    html:

    image2020-3-8_12-33-47.png?version=1&modificationDate=1583642028000&api=v2

    js:

    image2020-3-8_12-37-5.png?version=1&modificationDate=1583642225000&api=v2

    以上为示例代码,其中有两点需要特别注意:

    1、打印元素的css需要写成行内样式,因为将元素替换之后引入的外部css将不存在,造成元素无样式,特别是在现有的.vue文件中

    2、在打印完成或取消打印之后,要reload当前页面,因为重新以body.innerHTML填充之后,元素绑定的事件将不存在,所以需要重新加载页面进行事件绑定

    关于打印机的调试

    目前使用的打印机型号繁多,大多数只提供window版的驱动,以QR-488面单打印机为例,只能使用windows电脑进行打印调试,而且仓库打印所使用的

    电脑也基本都是windows系统,所以为了保持一致性,各位同学如果需要做打印面单或价签方面的需求,尽量使用windows电脑进行开发调试。

    展开全文
  • winform 调用打印机

    2016-01-19 11:39:55
    这个demo是关于winform 调用打印机的, 实现打印、打印设置、打印预览以及将打印内容保存为图片的功能。如有BUG或者不完善,欢迎小伙伴们提出~
  • 调用打印机打印图片

    2018-07-23 16:26:38
    调用打印机打印图片(python)。。。。。。。。。。。。。。。。。。。
  • winfrom调用打印机demo
  • 1、调用打印机首先就是要配置好打印机 就是电脑跟打印机已经连接好,有默认的打印机可以启动使用 2、调用方式 (1)使用外部第三方软件exe 代码如下:(就两句) string path = Application.dataPath + @"\...
  • Java调用打印机

    2020-12-06 15:16:39
    Java调用打印机 现在正在做一个打印条形标签的程序,我打算用Java语言进行实现; 首先,页面打算使用Java Swing的界面,然后点击打印时候进行调用打印机; package ccu.edu.com; import java.awt.print.Book; ...

    Java调用打印机

       现在正在做一个打印条形标签的程序,我打算用Java语言进行实现;
       首先,页面打算使用Java Swing的界面,然后点击打印时候进行调用打印机;
    
    package ccu.edu.com;
    
    import java.awt.print.Book;
    import java.awt.print.PageFormat;
    import java.awt.print.Paper;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Map;
    
    import javax.imageio.ImageIO;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.attribute.standard.Media;
    import javax.print.attribute.standard.MediaSizeName;
    import javax.print.attribute.standard.MediaTray;
    
    import com.alibaba.fastjson.JSON;
    import com.google.zxing.client.j2se.MatrixToImageWriter;
    
    import java.awt.*;
    import java.awt.image.BufferedImage;
    
    public class QrPrint implements Printable {
    	/**
    	 * 
    	 * @param Graphic指明打印的图形环境
    	 * 
    	 * @param PageFormat指明打印页格式(页面大小以点为计量单位,1点为1英才的1/72,1英寸为25.4毫米。A4纸大致为595×842点)
    	 * 
    	 * @param pageIndex指明页号
    	 * 
    	 **/
    	//读取参数文件
    	Map<String, Object> settingForm = parseFile("src/config/setting.txt");
    
    	public int print(Graphics gra, PageFormat pf, int pageIndex ) throws PrinterException {
    		
    		System.out.println("pageIndex=" + pageIndex);
    		Component c = null;
    
    		// 转换成Graphics2D
    		Graphics2D g2 = (Graphics2D) gra;
    
    		// 设置打印颜色为黑色
    		g2.setColor(Color.black);
    
    		// 设置打印字体(字体名称、样式和点大小)(字体名称可以是物理或者逻辑名称)五种字体系列:Serif、SansSerif、Monospaced、Dialog
    		// 和 DialogInput
    
    		int fontSize = (int)settingForm.get("font");
    		
    		Font font = new Font("Monospaced", Font.BOLD, fontSize);
    		g2.setFont(font);// 设置字体
    		float line_heigth = font.getSize2D();// 字体高度
    
    		pf.getPaper();
    
    		System.out.println("打印页面的宽度=>>" + pf.getWidth());
    		System.out.println("打印页面的高度=>>" + pf.getHeight());
    		System.out.println("可成像页面的宽度=>>" + pf.getImageableWidth());
    		System.out.println("可成像页面的高度=>>" + pf.getImageableHeight());
    		System.out.println("可成像页面的坐标=>> (" + pf.getImageableX() + " , " + pf.getImageableY() + ")");
    
    		// 打印起点坐标
    		double x = pf.getImageableX();
    		double y = pf.getImageableY();
    		double width = pf.getImageableWidth();
    		double height = pf.getImageableHeight();
    		// logo位置大小
    		int logo_width = (int) (0.225 * width);
    		int logo_height = (int) (0.59 * logo_width);
    		int logo_x = (int) (0.0375 * width);
    		int logo_y = (int) (0.5 * (height - logo_height));
    		// 二维码位置大小
    		int init_width = (int) (0.25 * width);
    		int init_height = init_width;
    		int init_x = (int) (0.725 * width);
    		int init_y = (int) (0.5 * (height - init_height));
    		// 文字位置大小
    		float line_x = (float) (0.3 * width);
    		float lineOne_y = init_y + line_heigth;
    		float lineTwo_y = init_y + 3 * line_heigth;
    		float lineThree_y = init_y + 5 * line_heigth;
    
    		switch (pageIndex) {
    		case 0:
    			
    			Map<String,Object> form =  parseFile("src/config/line.txt");
    			String lineOne = form.get("lineOne").toString();
    			String lineTwo = form.get("lineTwo").toString();
    			String lineThree = form.get("lineThree").toString();
    			String qrText = new StringBuilder().append(lineOne).append(lineTwo).append(lineThree).toString();
    			
    			Image src = Toolkit.getDefaultToolkit().getImage("src/icon/logo.png");
    			Image init = new QRCodeImage1(qrText, 80).getImage();
    			
    			g2.drawString(lineOne, line_x, lineOne_y);
    			g2.drawString(lineTwo, line_x, lineTwo_y);
    			g2.drawString(lineThree, line_x, lineThree_y);
    			g2.drawImage(src, logo_x, logo_y, logo_width, logo_height, c);
    			g2.drawImage(init, init_x, init_y, init_width, init_height, c);
    
    			return PAGE_EXISTS;
    
    		default:
    
    			return NO_SUCH_PAGE;
    
    		}
    
    	}
    
    	public boolean isPrint() {
    
    		PrintService printer = PrintServiceLookup.lookupDefaultPrintService();
    		Media[] objs = (Media[]) printer.getSupportedAttributeValues(Media.class, null, null);
    		for (Media obj : objs) {
    			if (obj instanceof MediaSizeName) {
    				System.out.println("纸张型号:" + obj);
    			} else if (obj instanceof MediaTray) {
    				System.out.println("纸张来源:" + obj);
    			}
    		}
    		
    		// 通俗理解就是书、文档
    		Book book = new Book();
    		// 设置成竖打
    		PageFormat pf = new PageFormat();
    		pf.setOrientation(PageFormat.PORTRAIT);
    		// 通过Paper设置页面的空白边距和可打印区域。必须与实际打印纸张大小相符。
    		int ImageableAreaWidth = (int)(2.833*(int)settingForm.get("width"));
    		int ImageableAreaHeight = (int)(2.833*(int)settingForm.get("heigth"));
    		int ImageableAreaX = (int)(2.833*(int)settingForm.get("x"));
    		int ImageableAreaY = (int)(2.833*(int)settingForm.get("y"));
    		
    		Paper p = new Paper();
    		p.setSize(240, 90);// 纸张大小
    		p.setImageableArea(ImageableAreaX, ImageableAreaY, ImageableAreaWidth, ImageableAreaHeight);
    		pf.setPaper(p);
    		// 把 PageFormat 和 Printable 添加到书中,组成一个页面
    		book.append(new QrPrint(), pf);
    		// 获取打印服务对象
    		//查找所有打印服务
    		PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
    		System.out.println("*****从配置文件读取的打印机型号*****");
    		System.out.println(services.length);
    		System.out.println(parseFile("src/config/printer.txt").get("printer"));
    		System.out.println("**********");
    		// this step is necessary because I have several printers configured
    		//将所有查找出来的打印机与自己想要的打印机进行匹配,找出自己想要的打印机
    		PrintService myPrinter = null;
    		for (int i = 0; i < services.length; i++) {
    			System.out.println("service found: " + services[i]);
    			if (services[i].getName().equals(parseFile("src/config/printer.txt").get("printer"))) {
    				myPrinter = services[i];
    				System.out.println("当前使用打印机:"+myPrinter.getName());
    				break;
    			}else {
    				myPrinter=PrintServiceLookup.lookupDefaultPrintService();
    			}
    		}
    		
    		PrinterJob job = PrinterJob.getPrinterJob();
    		try {
    			// 设置打印类
    			job.setPageable(book);
    			job.setPrintService(myPrinter);
    			job.print();
    			return true;
    		} catch (PrinterException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    			return false;
    		}
    	}
    	/* 读文件(json) */
    	public static Map<String, Object> parseFile(String path) {
    		try {
    			File file = new File(path);
    			if (file.isFile() && file.exists() && file.canRead()) {
    				String encoding = "GBK";
    				InputStreamReader in;
    				in = new InputStreamReader(new FileInputStream(file), encoding);
    				BufferedReader bufferedReader = new BufferedReader(in);
    				String lineTxt = "";
    				StringBuilder sb = new StringBuilder(lineTxt);
    				while ((lineTxt = bufferedReader.readLine()) != null) {
    					if (!lineTxt.trim().equals("")) {
    						sb.append(lineTxt);
    					}
    				}
    				lineTxt = sb.toString();
    				in.close();
    				return JSON.parseObject(lineTxt);
    			}else {
    				System.out.println("找不到指定文件");
    			}
    		} catch (IOException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		}
    		return null;
    	}
    
    }
    
    

    要点:
    1 查找所有打印服务

    	PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
    

    2 设置默认打印机

    	myPrinter=PrintServiceLookup.lookupDefaultPrintService();
    

    3 设置纸张大小

    		// 通俗理解就是书、文档
    		Book book = new Book();
    		// 设置成竖打
    		PageFormat pf = new PageFormat();
    		pf.setOrientation(PageFormat.PORTRAIT);
    		// 通过Paper设置页面的空白边距和可打印区域。必须与实际打印纸张大小相符。
    		int ImageableAreaWidth = (int)(2.833*(int)settingForm.get("width"));
    		int ImageableAreaHeight = (int)(2.833*(int)settingForm.get("heigth"));
    		int ImageableAreaX = (int)(2.833*(int)settingForm.get("x"));
    		int ImageableAreaY = (int)(2.833*(int)settingForm.get("y"));
    		
    		Paper p = new Paper();
    		p.setSize(240, 90);// 纸张大小 实际的纸张大小,尽量大一点
    		p.setImageableArea(ImageableAreaX, ImageableAreaY, ImageableAreaWidth, ImageableAreaHeight);  //打印区域(x,y,width,height)
    		pf.setPaper(p);
    
    展开全文
  • delphi自动调用打印机打印源码,经测试可以正常调用打印机打印文件,设置简单方便可以快速打印文件解决指定打印机问题。
  • 微信小程序调用打印机的案例,后端使用PHP开发,填写参数即可实现打印,内附demo和SDK,按照文档调用即可
  • 主要介绍了JS调用打印机功能的方法,结合完整实例形式分析了javascript打印机功能的相关设置与使用技巧,需要的朋友可以参考下
  • c# 调用打印机打印图片 可以运行 打印机打印图片 c#
  • LODOP 调用打印机(我的打印机BROTHER牌子)
  • c# 调用打印机

    2019-10-09 08:37:37
    c# 调用打印机 2015-06-01 15:35:00weixin_34404393阅读数 141 1.本地打印机 //添加引用并using System.Management; public static void AvailablePrinters() { ManagementScope ms = new Manageme...

    c# 调用打印机

    2015-06-01 15:35:00 weixin_34404393 阅读数 141

    1.本地打印机

     //添加引用并using System.Management;
            public static void AvailablePrinters()
            {
                ManagementScope ms = new ManagementScope(ManagementPath.DefaultPath);
                ms.Connect();
     
                SelectQuery sq = new SelectQuery();
                sq.QueryString = @"SELECT Name FROM Win32_Printer";
     
                ManagementObjectSearcher mos =
                   new ManagementObjectSearcher(ms, sq);
                ManagementObjectCollection oObjectCollection = mos.Get();
     
                foreach (ManagementObject mo in oObjectCollection)
                    MessageBox.Show(mo["Name"].ToString());
     
            }

    2.网络打印机

    远程调用打印机:http://stackoverflow.com/questions/10888201/how-to-list-all-printers-on-network-computer

     

    via System.Drawing.Printing
    
    foreach (String printer in PrinterSettings.InstalledPrinters)
    {
        Console.WriteLine(printer.ToString()+Environment.NewLine);
    } 
    via WMI
    
    public static void AvailablePrinters()
    {
     oManagementScope = new ManagementScope(ManagementPath.DefaultPath);
     oManagementScope.Connect();
    
     SelectQuery oSelectQuery = new SelectQuery();
     oSelectQuery.QueryString = @"SELECT Name FROM Win32_Printer";
    
     ManagementObjectSearcher oObjectSearcher = 
        new ManagementObjectSearcher(oManagementScope, @oSelectQuery);
     ManagementObjectCollection oObjectCollection = oObjectSearcher.Get();
    
     foreach (ManagementObject oItem in oObjectCollection)
     {
    
     Console.WriteLine("Name : " + oItem["Name"].ToString()+ Environment.NewLine);
     }
    }
    via PowerShell
    
    Get-WMIObject -class Win32_Printer -computer $printserver | Select Name,DriverName,PortName

    相关:

    https://msdn.microsoft.com/zh-cn/library/System.Drawing.Printing.PrinterSettings(v=vs.85).aspx

    https://msdn.microsoft.com/en-us/library/aa394582(v=VS.85).aspx

    https://msdn.microsoft.com/en-us/library/windows/desktop/dd835506(v=vs.85).aspx

     

    https://msdn.microsoft.com/zh-cn/library/System.Management(v=vs.80).aspx

     

     

    参考文章:

    http://www.cnblogs.com/chengulv/archive/2012/12/29/2839303.html

    =======================================================================================

    备用信息:

    本应用程序另一个精彩的应用是:获取有关系统内存的信息,如内存地址,内存设备等等。 

    首先,你必须知道这个应用程序的功能是使用System.Management这个类得到的。因此,你需要加上下面的这句话:

    using System.Management;



    为了获取硬件信息,你还需要创建一个ManagementObjectSearcher 对象。

    ManagementObjectSearcher searcher = new ManagementObjectSearcher("select * from " + Key);
    
    
    // 硬件 
    Win32_Processor, // CPU 处理器 
    Win32_PhysicalMemory, // 物理内存条 
    Win32_Keyboard, // 键盘 
    Win32_PointingDevice, // 点输入设备,包括鼠标。 
    Win32_FloppyDrive, // 软盘驱动器 
    Win32_DiskDrive, // 硬盘驱动器 
    Win32_CDROMDrive, // 光盘驱动器 
    Win32_BaseBoard, // 主板 
    Win32_BIOS, // BIOS 芯片 
    Win32_ParallelPort, // 并口 
    Win32_SerialPort, // 串口 
    Win32_SerialPortConfiguration, // 串口配置 
    Win32_SoundDevice, // 多媒体设置,一般指声卡。 
    Win32_SystemSlot, // 主板插槽 (ISA & PCI & AGP) 
    Win32_USBController, // USB 控制器 
    Win32_NetworkAdapter, // 网络适配器 
    Win32_NetworkAdapterConfiguration, // 网络适配器设置 
    Win32_Printer, // 打印机 
    Win32_PrinterConfiguration, // 打印机设置 
    Win32_PrintJob, // 打印机任务 
    Win32_TCPIPPrinterPort, // 打印机端口 
    Win32_POTSModem, // MODEM 
    Win32_POTSModemToSerialPort, // MODEM 端口 
    Win32_DesktopMonitor, // 显示器 
    Win32_DisplayConfiguration, // 显卡 
    Win32_DisplayControllerConfiguration, // 显卡设置 
    Win32_VideoController, // 显卡细节。 
    Win32_VideoSettings, // 显卡支持的显示模式。 
    
    // 操作系统 
    Win32_TimeZone, // 时区 
    Win32_SystemDriver, // 驱动程序 
    Win32_DiskPartition, // 磁盘分区 
    Win32_LogicalDisk, // 逻辑磁盘 
    Win32_LogicalDiskToPartition, // 逻辑磁盘所在分区及始末位置。 
    Win32_LogicalMemoryConfiguration, // 逻辑内存配置 
    Win32_PageFile, // 系统页文件信息 
    Win32_PageFileSetting, // 页文件设置 
    Win32_BootConfiguration, // 系统启动配置 
    Win32_ComputerSystem, // 计算机信息简要 
    Win32_OperatingSystem, // 操作系统信息 
    Win32_StartupCommand, // 系统自动启动程序 
    Win32_Service, // 系统安装的服务 
    Win32_Group, // 系统管理组 
    Win32_GroupUser, // 系统组帐号 
    Win32_UserAccount, // 用户帐号 
    Win32_Process, // 系统进程 
    Win32_Thread, // 系统线程 
    Win32_Share, // 共享 
    Win32_NetworkClient, // 已安装的网络客户端 
    Win32_NetworkProtocol, // 已安装的网络协议 
    
     


    上面代码的Key是一个将被对应正确的数据填入的值。例如,获取CPU的信息,就需要把Key值设成Win32_Processor。所有Key可能的值,列举如下:

    Win32_1394Controller
    Win32_1394ControllerDevice
    Win32_Account
    Win32_AccountSID
    Win32_ACE
    Win32_ActionCheck
    Win32_AllocatedResource
    Win32_ApplicationCommandLine
    Win32_ApplicationService
    Win32_AssociatedBattery
    Win32_AssociatedProcessorMemory
    Win32_BaseBoard
    Win32_BaseService
    Win32_Battery
    Win32_Binary
    Win32_BindImageAction
    Win32_BIOS
    Win32_BootConfiguration
    Win32_Bus
    Win32_CacheMemory
    Win32_CDROMDrive
    Win32_CheckCheck
    Win32_CIMLogicalDeviceCIMDataFile
    Win32_ClassicCOMApplicationClasses
    Win32_ClassicCOMClass
    Win32_ClassicCOMClassSetting
    Win32_ClassicCOMClassSettings
    Win32_ClassInfoAction
    Win32_ClientApplicationSetting
    Win32_CodecFile
    Win32_COMApplication
    Win32_COMApplicationClasses
    Win32_COMApplicationSettings
    Win32_COMClass
    Win32_ComClassAutoEmulator
    Win32_ComClassEmulator
    Win32_CommandLineAccess
    Win32_ComponentCategory
    Win32_ComputerSystem
    Win32_ComputerSystemProcessor
    Win32_ComputerSystemProduct
    Win32_COMSetting
    Win32_Condition
    Win32_CreateFolderAction
    Win32_CurrentProbe
    Win32_DCOMApplication
    Win32_DCOMApplicationAccessAllowedSetting
    Win32_DCOMApplicationLaunchAllowedSetting
    Win32_DCOMApplicationSetting
    Win32_DependentService
    Win32_Desktop
    Win32_DesktopMonitor
    Win32_DeviceBus
    Win32_DeviceMemoryAddress
    Win32_DeviceSettings
    Win32_Directory
    Win32_DirectorySpecification
    Win32_DiskDrive
    Win32_DiskDriveToDiskPartition
    Win32_DiskPartition
    Win32_DisplayConfiguration
    Win32_DisplayControllerConfiguration
    Win32_DMAChannel
    Win32_DriverVXD
    Win32_DuplicateFileAction
    Win32_Environment
    Win32_EnvironmentSpecification
    Win32_ExtensionInfoAction
    Win32_Fan
    Win32_FileSpecification
    Win32_FloppyController
    Win32_FloppyDrive
    Win32_FontInfoAction
    Win32_Group
    Win32_GroupUser
    Win32_HeatPipe
    Win32_IDEController
    Win32_IDEControllerDevice
    Win32_ImplementedCategory
    Win32_InfraredDevice
    Win32_IniFileSpecification
    Win32_InstalledSoftwareElement
    Win32_IRQResource
    Win32_Keyboard
    Win32_LaunchCondition
    Win32_LoadOrderGroup
    Win32_LoadOrderGroupServiceDependencies
    Win32_LoadOrderGroupServiceMembers
    Win32_LogicalDisk
    Win32_LogicalDiskRootDirectory
    Win32_LogicalDiskToPartition
    Win32_LogicalFileAccess
    Win32_LogicalFileAuditing
    Win32_LogicalFileGroup
    Win32_LogicalFileOwner
    Win32_LogicalFileSecuritySetting
    Win32_LogicalMemoryConfiguration
    Win32_LogicalProgramGroup
    Win32_LogicalProgramGroupDirectory
    Win32_LogicalProgramGroupItem
    Win32_LogicalProgramGroupItemDataFile
    Win32_LogicalShareAccess
    Win32_LogicalShareAuditing
    Win32_LogicalShareSecuritySetting
    Win32_ManagedSystemElementResource
    Win32_MemoryArray
    Win32_MemoryArrayLocation
    Win32_MemoryDevice
    Win32_MemoryDeviceArray
    Win32_MemoryDeviceLocation
    Win32_MethodParameterClass
    Win32_MIMEInfoAction
    Win32_MotherboardDevice
    Win32_MoveFileAction
    Win32_MSIResource
    Win32_networkAdapter
    Win32_networkAdapterConfiguration
    Win32_networkAdapterSetting
    Win32_networkClient
    Win32_networkConnection
    Win32_networkLoginProfile
    Win32_networkProtocol
    Win32_NTEventlogFile
    Win32_NTLogEvent
    Win32_NTLogEventComputer
    Win32_NTLogEventLog
    Win32_NTLogEventUser
    Win32_ODBCAttribute
    Win32_ODBCDataSourceAttribute
    Win32_ODBCDataSourceSpecification
    Win32_ODBCDriverAttribute
    Win32_ODBCDriverSoftwareElement
    Win32_ODBCDriverSpecification
    Win32_ODBCSourceAttribute
    Win32_ODBCTranslatorSpecification
    Win32_OnBoardDevice
    Win32_OperatingSystem
    Win32_OperatingSystemQFE
    Win32_OSRecoveryConfiguration
    Win32_PageFile
    Win32_PageFileElementSetting
    Win32_PageFileSetting
    Win32_PageFileUsage
    Win32_ParallelPort
    Win32_Patch
    Win32_PatchFile
    Win32_PatchPackage
    Win32_PCMCIAController
    Win32_Perf
    Win32_PerfRawData
    Win32_PerfRawData_ASP_ActiveServerPages
    Win32_PerfRawData_ASPnet_114322_ASPnetAppsv114322
    Win32_PerfRawData_ASPnet_114322_ASPnetv114322
    Win32_PerfRawData_ASPnet_ASPnet
    Win32_PerfRawData_ASPnet_ASPnetApplications
    Win32_PerfRawData_IAS_IASAccountingClients
    Win32_PerfRawData_IAS_IASAccountingServer
    Win32_PerfRawData_IAS_IASAuthenticationClients
    Win32_PerfRawData_IAS_IASAuthenticationServer
    Win32_PerfRawData_InetInfo_InternetInformationServicesGlobal
    Win32_PerfRawData_MSDTC_DistributedTransactionCoordinator
    Win32_PerfRawData_MSFTPSVC_FTPService
    Win32_PerfRawData_MSSQLSERVER_SQLServerAccessMethods
    Win32_PerfRawData_MSSQLSERVER_SQLServerBackupDevice
    Win32_PerfRawData_MSSQLSERVER_SQLServerBufferManager
    Win32_PerfRawData_MSSQLSERVER_SQLServerBufferPartition
    Win32_PerfRawData_MSSQLSERVER_SQLServerCacheManager
    Win32_PerfRawData_MSSQLSERVER_SQLServerDatabases
    Win32_PerfRawData_MSSQLSERVER_SQLServerGeneralStatistics
    Win32_PerfRawData_MSSQLSERVER_SQLServerLatches
    Win32_PerfRawData_MSSQLSERVER_SQLServerLocks
    Win32_PerfRawData_MSSQLSERVER_SQLServerMemoryManager
    Win32_PerfRawData_MSSQLSERVER_SQLServerReplicationAgents
    Win32_PerfRawData_MSSQLSERVER_SQLServerReplicationDist
    Win32_PerfRawData_MSSQLSERVER_SQLServerReplicationLogreader
    Win32_PerfRawData_MSSQLSERVER_SQLServerReplicationMerge
    Win32_PerfRawData_MSSQLSERVER_SQLServerReplicationSnapshot
    Win32_PerfRawData_MSSQLSERVER_SQLServerSQLStatistics
    Win32_PerfRawData_MSSQLSERVER_SQLServerUserSettable
    Win32_PerfRawData_netFramework_netCLRExceptions
    Win32_PerfRawData_netFramework_netCLRInterop
    Win32_PerfRawData_netFramework_netCLRJit
    Win32_PerfRawData_netFramework_netCLRLoading
    Win32_PerfRawData_netFramework_netCLRLocksAndThreads
    Win32_PerfRawData_netFramework_netCLRMemory
    Win32_PerfRawData_netFramework_netCLRRemoting
    Win32_PerfRawData_netFramework_netCLRSecurity
    Win32_PerfRawData_Outlook_Outlook
    Win32_PerfRawData_PerfDisk_PhysicalDisk
    Win32_PerfRawData_Perfnet_Browser
    Win32_PerfRawData_Perfnet_Redirector
    Win32_PerfRawData_Perfnet_Server
    Win32_PerfRawData_Perfnet_ServerWorkQueues
    Win32_PerfRawData_PerfOS_Cache
    Win32_PerfRawData_PerfOS_Memory
    Win32_PerfRawData_PerfOS_Objects
    Win32_PerfRawData_PerfOS_PagingFile
    Win32_PerfRawData_PerfOS_Processor
    Win32_PerfRawData_PerfOS_System
    Win32_PerfRawData_PerfProc_FullImage_Costly
    Win32_PerfRawData_PerfProc_Image_Costly
    Win32_PerfRawData_PerfProc_JobObject
    Win32_PerfRawData_PerfProc_JobObjectDetails
    Win32_PerfRawData_PerfProc_Process
    Win32_PerfRawData_PerfProc_ProcessAddressSpace_Costly
    Win32_PerfRawData_PerfProc_Thread
    Win32_PerfRawData_PerfProc_ThreadDetails_Costly
    Win32_PerfRawData_RemoteAccess_RASPort
    Win32_PerfRawData_RemoteAccess_RASTotal
    Win32_PerfRawData_RSVP_ACSPerRSVPService
    Win32_PerfRawData_Spooler_PrintQueue
    Win32_PerfRawData_TapiSrv_Telephony
    Win32_PerfRawData_Tcpip_ICMP
    Win32_PerfRawData_Tcpip_IP
    Win32_PerfRawData_Tcpip_NBTConnection
    Win32_PerfRawData_Tcpip_networkInterface
    Win32_PerfRawData_Tcpip_TCP
    Win32_PerfRawData_Tcpip_UDP
    Win32_PerfRawData_W3SVC_WebService

    Win32_PhysicalMedia
    Win32_PhysicalMemory
    Win32_PhysicalMemoryArray
    Win32_PhysicalMemoryLocation
    Win32_PNPAllocatedResource
    Win32_PnPDevice
    Win32_PnPEntity
    Win32_PointingDevice
    Win32_PortableBattery
    Win32_PortConnector
    Win32_PortResource
    Win32_POTSModem
    Win32_POTSModemToSerialPort
    Win32_PowerManagementEvent
    Win32_Printer
    Win32_PrinterConfiguration
    Win32_PrinterController
    Win32_PrinterDriverDll
    Win32_PrinterSetting
    Win32_PrinterShare
    Win32_PrintJob
    Win32_PrivilegesStatus
    Win32_Process
    Win32_Processor
    Win32_ProcessStartup
    Win32_Product
    Win32_ProductCheck
    Win32_ProductResource
    Win32_ProductSoftwareFeatures
    Win32_ProgIDSpecification
    Win32_ProgramGroup
    Win32_ProgramGroupContents
    Win32_ProgramGroupOrItem
    Win32_Property
    Win32_ProtocolBinding
    Win32_PublishComponentAction
    Win32_QuickFixEngineering
    Win32_Refrigeration
    Win32_Registry
    Win32_RegistryAction
    Win32_RemoveFileAction
    Win32_RemoveIniAction
    Win32_ReserveCost
    Win32_ScheduledJob
    Win32_SCSIController
    Win32_SCSIControllerDevice
    Win32_SecurityDescriptor
    Win32_SecuritySetting
    Win32_SecuritySettingAccess
    Win32_SecuritySettingAuditing
    Win32_SecuritySettingGroup
    Win32_SecuritySettingOfLogicalFile
    Win32_SecuritySettingOfLogicalShare
    Win32_SecuritySettingOfObject
    Win32_SecuritySettingOwner
    Win32_SelfRegModuleAction
    Win32_SerialPort
    Win32_SerialPortConfiguration
    Win32_SerialPortSetting
    Win32_Service
    Win32_ServiceControl
    Win32_ServiceSpecification
    Win32_ServiceSpecificationService
    Win32_SettingCheck
    Win32_Share
    Win32_ShareToDirectory
    Win32_ShortcutAction
    Win32_ShortcutFile
    Win32_ShortcutSAP
    Win32_SID
    Win32_SMBIOSMemory
    Win32_SoftwareElement
    Win32_SoftwareElementAction
    Win32_SoftwareElementCheck
    Win32_SoftwareElementCondition
    Win32_SoftwareElementResource
    Win32_SoftwareFeature
    Win32_SoftwareFeatureAction
    Win32_SoftwareFeatureCheck
    Win32_SoftwareFeatureParent
    Win32_SoftwareFeatureSoftwareElements
    Win32_SoundDevice
    Win32_StartupCommand
    Win32_SubDirectory
    Win32_SystemAccount
    Win32_SystemBIOS
    Win32_SystemBootConfiguration
    Win32_SystemDesktop
    Win32_SystemDevices
    Win32_SystemDriver
    Win32_SystemDriverPNPEntity
    Win32_SystemEnclosure
    Win32_SystemLoadOrderGroups
    Win32_SystemLogicalMemoryConfiguration
    Win32_SystemMemoryResource
    Win32_SystemnetworkConnections
    Win32_SystemOperatingSystem
    Win32_SystemPartitions
    Win32_SystemProcesses
    Win32_SystemProgramGroups
    Win32_SystemResources
    Win32_SystemServices
    Win32_SystemSetting
    Win32_SystemSlot
    Win32_SystemSystemDriver
    Win32_SystemTimeZone
    Win32_SystemUsers
    Win32_TapeDrive
    Win32_TemperatureProbe
    Win32_Thread
    Win32_TimeZone
    Win32_Trustee
    Win32_TypeLibraryAction
    Win32_UninterruptiblePowerSupply
    Win32_USBController
    Win32_USBControllerDevice
    Win32_UserAccount
    Win32_UserDesktop
    Win32_VideoConfiguration
    Win32_VideoController
    Win32_VideoSettings
    Win32_VoltageProbe
    Win32_WMIElementSetting
    Win32_WMISetting

     

    展开全文
  • H5 mui通过蓝牙调用打印机
  • 调用打印机代码

    2012-11-13 14:41:00
    调用打印机的C++源代码,在工程中运行是没问题的,但是单独运行可能需要自己再添加相关代码,没经验的下载要慎重。
  • 程序调用打印机接口

    2014-04-01 10:00:53
    程序调用打印机接口,如电脑已添加打印机,便可直接打印出你所想打印出的代码
  • java调用打印机的代码如下:publicstaticvoidmain(String[]args){PrintRequestAttributeSetpras=newHashPrintRequestAttributeSet();DocFlavorflavor=DocFlavor.INPUT_STREAM.AUTOSEN...java调用打印机的代码如下:...

    java调用打印机的代码如下:publicstaticvoidmain(String[]args){PrintRequestAttributeSetpras=newHashPrintRequestAttributeSet();DocFlavorflavor=DocFlavor.INPUT_STREAM.AUTOSEN...

    java调用打印机的代码如下:

    public static void main(String[] args) {

    PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();

    DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;

    PrintService printService[] = PrintServiceLookup

    .lookupPrintServices(flavor, pras);// 用户可选用的PrintService实例数组。

    PrintService activePrintService = null;

    for(PrintService service : printService){

    System.out.println(service.getName());

    if(service.getName().equals("HP Deskjet 1000 J110 series")){

    activePrintService = service;

    }

    }

    /

    if (printService.length > 0) {

    DocPrintJob pj = activePrintService.createPrintJob();

    try {

    FileInputStream fis = new FileInputStream("d:/print2.txt");

    Doc doc = new SimpleDoc(fis, flavor, null);

    pj.print(doc, pras);

    } catch (FileNotFoundException fe) {

    fe.printStackTrace();

    } catch (PrintException e) {

    e.printStackTrace();

    }

    }

    }

    代码执行后,文档已经进入打印机,并提示“正在打印”,但打印机没有反应,求解。。。。。。

    展开

    展开全文
  • VB调用打印机的例子,通过本例可学习下如何在VB中调用Windows的打印接口及控制面板,实现与打印机的连接,代码可在VB6.0中编译通过。
  • MFC调用打印机,实现自定义排版,本程序使用的vs2010集成开发环境,能按照自己的习惯来排版内容,支持打印多页,排版多页

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 3,210
精华内容 1,284
关键字:

调用打印机