pb10分析和总结分析和总结.docx

  1. 1、本文档共10页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
一、PB9 打印 其實很簡單的,給你一段參考.. Select the DataWindow by deselecting all controls; then set values in the Properties view, Print Specifications tab. To specify a user-defined paper size, set the Paper.Size property to 255 or 256, then set the Print.CustomPage.Length and Print.Custom.Page.Width properties to the desired size. With Paper.Size set to 255, Length and Width are in the units specified for the DataWindow on the General page in the Properties view. For example: // DataWindow Units set to 1/1000 inch dw1.Modify(DataWindow.Print.Paper.Size=255) //9.875 inches long dw1.Modify(DataWindow.Print.CustomPage.Length=9875) //7.375 inches wide dw1.Modify(DataWindow.Print.CustomPage.Width=7375) With Paper.Size set to 256, Length and Width are in millimeters: dw1.Modify(DataWindow.Print.Paper.Size=256) //25.4 centimeters long dw1.Modify(DataWindow.Print.CustomPage.Length=254) //19.5 centimeters wide dw1.Modify(DataWindow.Print.CustomPage.Width=195) 开发的程序中有个票据打印的功能,一张28cm 的纸张含有 6 对小票,我现在想将小票的高度设置成为单张小票的高度 原来设置的纸张 6 张小票的高度如下设置 dw_print_view.modify( datawindow.print.Paper.Size = 256 ) dw_print_view.modify( datawindow.print.CustomPage.Length= 280 ) dw_print_view.modify( datawindow.print.CustomPage.Width = 385 ) 我现在想将高度设置为单张票据的高度,即280/6 得到的是 46.666666666666666667 这样的 话,高度就要设置为 47,当打印的张数多的话,偏差比较的大我想用 inch 单位的设置,换算后得到如下的设置dw_print_view.modify( datawindow.print.Paper.Size = 255 ) dw_print_view.modify( datawindow.print.CustomPage.Length= 1837 ) dw_print_view.modify( datawindow.print.CustomPage.Width = 15157 ) 可是预览的时候,高度跟宽度都很小这是怎么回事? 一、打印问题 //打印函数,采用的是 网上 广为流传的动态库 princtrl.dll FUNCTION Boolean IsWindowsNT() LIBRARY PrintCtrl.dll FUNCTION Boolean GetDefaultPrinter(REF String PrinterName, Int BufferLen) LIBRARY PrintCtrl.dll FUNCTION Boolean GetPrinterPort(REF String PrinterName, REF String Por t, Int PortLen, REF String Driver, Int DriverLen) LIBRARY PrintCtrl.dll FUNCTION Boolean GetPrinterList(REF String PrinterList, REF Long Buffer Len) LIBRARY PrintCtrl.dll FUNCTION Bo

文档评论(0)

tianya189 + 关注
官方认证
内容提供者

该用户很懒,什么也没介绍

认证主体阳新县融易互联网技术工作室
IP属地上海
统一社会信用代码/组织机构代码
92420222MA4ELHM75D

1亿VIP精品文档

相关文档