社区
VB基础类
帖子详情
printer自定义纸张 单位换算问题
chinaqdl21
2008-03-06 11:55:00
PaperWidth = 10544 '15.6cm
PaperHeight = 5784 '10.2cm
以上是从本论坛搜索到的代码 不知道 上面的 PaperWidth=10544 和15.6cm是怎么换算出来的,有知道的吗,着急
我都查了半天了,脑袋大了,也没找到答案
...全文
97
2
打赏
收藏
printer自定义纸张 单位换算问题
PaperWidth = 10544 '15.6cm PaperHeight = 5784 '10.2cm 以上是从本论坛搜索到的代码 不知道 上面的 PaperWidth=10544 和15.6cm是怎么换算出来的,有知道的吗,着急 我都查了半天了,脑袋大了,也没找到答案
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
chinaqdl21
2008-03-06
打赏
举报
回复
呵呵,找到答案了1cm=567提
饮水需思源
2008-03-06
打赏
举报
回复
1毫米=0.03937英寸
1英寸=1440提(twips)
A4纸=197毫米*210毫米
java 计算打印纸大小_java – 如何打印
自定义
纸张
尺寸(检查8“x 4”)?
打印设计为每英寸像素.基本打印API使用DPI为72.您需要相应地转换测量值…double paperWidth = 8 * 72d;double paperHeight = 4 * 72d;double margin = 1 * 72d;用例子更新g2d.setClip(0,0,(int)pageFormat.getImageableWidth(),(int)pageFormat.getImag...
98、2000和XP系统
自定义
打印
纸张
的VB代码
Option ExplicitPublic Declare Function EnumForms Lib "winspool.drv" Alias "EnumFormsA" _ (ByVal h
Pr
inte
r As Long, ByVal Level As Long, ByRef pForm As Any, _ ByVal cbBuf As Long, ByRef pcbNeede
C#调用windows api控制打印机 状态获取 打印
自定义
纸张
完整版
using System; using System.Text; using System.Runtime.
Inte
ropServices; using System.Security; using System.ComponentModel; namespace SoftPOS { public class
Pr
inte
rHelper { ...
C#使用window API 控制打印
纸张
大小
windows一个特点就是设备无关性,这样就给程序控制打印机提供了很好的方法。首先引用“泥人张”写的打印API类。using System;using System.Collections;using System.Text;using System.Runtime.
Inte
ropServices;using System.Security;using System.Component
API(2)——打印系统开发(37)——C#调用windows api 实现打印机控制(状态获取、打印、
自定义
纸张
)
using System; using System.Text; using System.Runtime.
Inte
ropServices; using System.Security; using System.ComponentModel; namespace SoftPOS { public class
Pr
inte
rHelper {
pr
ivate P...
VB基础类
7,763
社区成员
197,609
社区内容
发帖
与我相关
我的任务
VB基础类
VB 基础类
复制链接
扫一扫
分享
社区描述
VB 基础类
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章