• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 打印  d  POS  demo  

资源简介

带打印PDA POS 打印DEMO

一体打印 条码

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Haohan;

namespace PrintTest
{
    public partial class Form1 : Form
    {
        Printer print = new Printer();
        string sPrint = ““;
        int i = 1;
        public Form1()
        {
            InitializeComponent();
            //打开设备
            print.Open();

            // textBox1.Text = “132132132\r\n456465\r\n789888\r\n“;

        }
        /// 
        /// 初始化打印
        /// 

        private void initPrint()
        {
            uint u = (uint)Int16.Parse(“2“);
            if (print.IsOpen)
            {
                if (!print.SetGrayLevel(u))
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .CA....     66560  2011-11-07 11:01  PrintTest打印\PrintTest\bin\Release\Haohan.dll

    .CA....     15360  2014-05-15 23:17  PrintTest打印\PrintTest\bin\Release\PrintTest.exe

    .CA....     26112  2014-05-15 23:17  PrintTest打印\PrintTest\bin\Release\PrintTest.pdb

    .CA....     10204  2012-12-07 17:39  PrintTest打印\PrintTest\Form1.cs

    .CA....     14310  2012-07-31 09:35  PrintTest打印\PrintTest\Form1.Designer.cs

    .CA....      6300  2012-07-31 09:35  PrintTest打印\PrintTest\Form1.resx

    .CA....     66560  2011-11-07 11:01  PrintTest打印\PrintTest\Haohan.dll

    .CA....      4736  2013-11-14 17:57  PrintTest打印\PrintTest\PrintTest.csproj

    .CA....       279  2014-01-10 10:10  PrintTest打印\PrintTest\PrintTest.csproj.user

    .CA....       362  2009-04-20 17:55  PrintTest打印\PrintTest\Program.cs

    .CA....      1224  2009-04-20 17:55  PrintTest打印\PrintTest\Properties\AssemblyInfo.cs

    .CA....      2502  2011-06-09 14:17  PrintTest打印\PrintTest\Properties\Resources.Designer.cs

    .CA....      5297  2011-06-09 14:17  PrintTest打印\PrintTest\Properties\Resources.resx

    .CA....      1083  2011-11-07 09:45  PrintTest打印\PrintTest.sln

    .CA..H.     19968  2014-06-18 15:02  PrintTest打印\PrintTest.suo

     目录          0  2014-05-17 12:40  PrintTest打印\PrintTest\obj\Debug\TempPE

     目录          0  2014-05-17 12:40  PrintTest打印\PrintTest\bin\Debug

     目录          0  2014-05-17 12:40  PrintTest打印\PrintTest\bin\Release

     目录          0  2014-05-17 12:40  PrintTest打印\PrintTest\obj\Debug

     目录          0  2014-05-17 12:40  PrintTest打印\PrintTest\bin

     目录          0  2014-07-28 15:31  PrintTest打印\PrintTest\obj

     目录          0  2014-05-17 12:40  PrintTest打印\PrintTest\Properties

     目录          0  2014-05-17 12:40  PrintTest打印\PrintTest

     目录          0  2014-05-17 12:40  PrintTest打印

----------- ---------  ---------- -----  ----

               240857                    24


评论

共有 条评论