Code Monkey home page Code Monkey logo

web-print-agent's Introduction

关于:

WEB Print Agent 是一个C#编写的C/S结构网页打印代理程序。

  • 提供PC上直接调起打印机打印的能力
  • 监听HTTP请求的31400端口,用来接收打印的JSON数据

目录结构:

WindowsFormsPrint 源文件目录

bin 编译目录
  |- Debug 调试版本可执行程序生成目录
  |- Release 发行版本可执行程序生成目录
obj 用于存放编译过程中生成的中间临时文件
  |- Debug 调试版本编译过程中生成的中间临时文件
  |- Release 发行版本编译过程中生成的中间临时文件
Properties 定义程序集的属性

调试方法:

  1. 下载源码,用宇宙第一IDE打开解决方案
  2. 修改代码(当然不修改也可以直接运行o( ̄︶ ̄)o )
  3. 启动项目
  4. 用浏览器打开demo.html
  5. 点击submit按钮
  6. 等待打印结果

使用方法:

  1. 下载源码
  2. 拷贝bin/Debug/目录下config.ini和WindowsFormsPrint.exe文件到任何文件夹下
  3. 双击WindowsFormsPrint.exe运行
  4. 用浏览器打开demo.html
  5. 点击submit按钮
  6. 等待打印结果

bin/Debug/config.ini 程序配置文件 其中PrinterName=Microsoft XPS Document Writer 指定打印机名称


© WEB Print Agent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.