• 首页
  • 项目
  • 会员
  • 博客
  • 共享建站
  • 秀我网游
  • BUG反馈

只要钻研不要钱

只要钻研不要钱
不要浪费每一分每一秒,珍惜眼前,怀念过去。

博客分类

  • 心情文章
  • LINUX技术
  • 情情的故事
  • 构思
  • C#技术
  • JAVA技术
  • 其它
  • NHibernate
  • 嵌入式开发
  • 娱乐
  • 项目管理
  • 单片机
  • C语言
  • STM32

最新日志

  • 单网卡 Ubuntu 服务器打造 PPTP Server
  • Ubuntu php 环境配置
  • Ubuntu下Ftp的安装和配置(vsftpd)
  • 为Windows 7 Professional安装多语言包
  • 在 .NET Framework 3.5 中管理目录安全主体
  • 自制ghost光盘如此简单
  • NSIS安装制作基础教程
  • Magic Mouse拆解
  • 美国买的thinkpad在国内保修的方法
  • ActiveX控件打包成Cab置于网页中自动下载安装
  • VB控件实现IObjectSafety安全接口,保证控件自动下载
  • 微软代码签名证书(.pvk/.spc)签名指南
  • 如何為你的 firefox plugin 加上新的 method
  • 如何让Firefox Plugin可以在网页中自动安装
  • mozilla firefox 插件开发 快速入门

如何使用并口控制打印机打印的字体大小

小字体 中字体 大字体


These should work on most DMPs especially EPSON ones.
Basically there are 3 font sizes built into the printer firmware.

1) Normal size

2) Large size - Use chr(14)

Eg; Print #1, chr(14); "ABCDE"

Will print ABCDE in large sized font. To revert back to normal size you can use chr(18)

Eg; Print #1, chr(14); "ABCDE"; chr(18); "XYZ"

Will print ABCDE in large sized font and XYZ in normal sized font.

3) Condensed - Use chr(15)

Eg; Print #1, chr(15); "ABCDE"

Will print ABCDE in condensed font. To revert back to normal size you can use chr(18)

Eg; Print #1, chr(15); "ABCDE"; chr(18); "XYZ"

Will print ABCDE in condensed font and XYZ in normal sized font.

This is all that I know.

Regarding pagesize, there are specific codes. These may be found in the Printer manual.

As far as I am concerned, in the progrmme I count the number of lines and send a page eject (chr(12)) when required. For example if the length of paper is 12" and you are printing @ 6 lines per inch with 1" margin on top and bottom, you can print 60 line on a sheet. After 60 lines you give a page eject to start the new page.

 

 

 

1. How can i give blank line between lines ? (IF i need one blank line)

    Print #1, vbnewline

2. Suppose my paper width is 9 inches, How many characters to be printed in one line ? (horizontal line)

    Depends on the font size. Normally it is 10 cpi. So after leaving 1 inch margin on left and right it will be 7*10 = 70 characters.

 

回顶部回顶部


日志评论


还没有人评论.
姓名:

内容:

验证码:




  • 首页|
  • 关于我们|
  • 服务|
  • 解决方案|
  • 有话要说|
  • 业务咨询|
  • 在线项目|
  • 登录|
  • 联系我们|

Copyright © wholuck 2009. All Rights Reserved.
粤ICP备09081412号