- 32
- 0
- 约1.6万字
- 约 23页
- 2017-06-10 发布于河南
- 举报
PB中打印相关(国外英文资料)
PB中打印相关(国外英文资料)
PB in printing -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - select printer -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
On the users requirements, we will encounter such problems in a PC to connect two printers, a print receipts, a printed report, two kinds of printers, paper size and direction of print Settings are not the same, if every switch allows users to manually set, too complicated, the user cant accept it. So we have to control the automatic switch printer in the program. Windows provides good printer related API function, in this I dont have the encapsulation, but with an online user object has been packaged, now lets see how to implement this function.
The idea is that a printer is set up by default, save the default printer Settings when switching, and switch when appropriate.
Procedure is as follows:
Write a function that calls wf_set_printer (string as_oper) return Boolean
Any ls_para
String ls_driver, ls_our_driver, ls_port, ls_PBPrinter, ls_inifile
The Integer li_i, li_count, li_size, li_length, li_row
If as_oper = xp then / / set the ticket printer
Ls_IniFile = c: \ schinf.ini / / save the.ini file name of the printer to be switched. The format is as follows
/ / / printer
/ / Drivers = EPSON TM - U210A Partial cut
/ / report = Epson lq-1600kiii (default printer)
Ls_our_driver = ProfileString (ls_inifile, printer, Drivers, None)
If ls_our_driver = None then return false
/ / a list of printers
Li_count = lnv_printer. Of_GetPrinterList (is_list)
/ / PB default printer
Ls_PBPrinter = lnv_printer. Of_GetPBPrinter ()
/ / save the default
Lnv_printer. Of_GetPaperSize (ls_pbprinter, ii_size, ii_width, ii_length)
Is_para = lnv_printer. Of_getpaperorientation (ls_pbprinter)
/ / traversing all the printer names that the system installs, if you find the printer to set, set the default, to the purpose of the switch
For li_i = 1 To l
您可能关注的文档
- DOS 下发送邮件(国外英文资料).doc
- DOS命令使用大全(国外英文资料).doc
- dos基础命令(国外英文资料).doc
- DSP的bootload(国外英文资料).doc
- Delphi文件、文件夹常用操作(国外英文资料).doc
- DVD技术参数(国外英文资料).doc
- DVD盘片生产技术概述(国外英文资料).doc
- DVD碟片MID编码大全(国外英文资料).doc
- DVR网络设置说明书(国外英文资料).doc
- DXP元件中英文对照(国外英文资料).doc
- 河北盐山中学等校2025-2026学年上学期高三一模化学试卷(含解析).docx
- 河北正定中学2025-2026学年高一上学期期末考试物理试卷(含解析).docx
- 河北张家口市怀安县2025-2026学年第一学期期末教学综合评价八年级地理试卷(含解析).docx
- 河南安阳市殷都区2025-2026学年第一学期期末教学质量检测七年级地理试卷(含解析).docx
- 河南安阳市滑县2025一2026学年第一学期期末学业质量监测八年级地理试题(含解析).docx
- 河南安阳市林州市2025-2026学年上学期期末考试高一政治试题(含解析).docx
- 河南焦作市武陟县第一中学2025-2026学年高一上学期1月月考语文试卷(含解析).docx
- 河南济源市2025-2026学年上学期期末学业质量调研七年级历史试卷(含解析).docx
- PICC导管并发症的紧急处理与护理.pptx
- 河南鹤壁市2025-2026学年高二上学期期末考试生物试题(含解析).docx
最近下载
- 学堂在线 雨课堂 学堂云 机器学习初步 章节测试答案.docx VIP
- 2024年内蒙古事业单位综合应用能力考历年高频难、易点(公基础测验1000题)题库a4版.docx
- 2026广东惠州市中心人民医院招聘员额制专业技术人员80人备考题库及答案详解1套.docx VIP
- 《体育科学研究方法》全套课件(硕士生).ppt
- 会摇尾巴的狼+课件-2025-2026学年语文三年级下册统编版.pptx VIP
- 上海市2026年中考一模语文模拟试卷试题(含答案详解).docx
- 微型计算机原理及应用课后答案侯晓霞.pdf VIP
- 2025年江西省赣州市留置看护队伍招聘考试历年参考题库含答案详解.docx VIP
- 人力资源管理应届生个人简历.pdf
- 四川威纳尔特种电子材料有限公司半导体集成电路超细电镀键合丝多样化改造项目环境影响评价报告书.docx
原创力文档

文档评论(0)