VB打印当前记录 每输入一次记录后,打印当前记录,还有就是打印指定的记录,怎么编写备份ACCESS数据库,怎样关闭当前数据库,请提供代码!!谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用recordset指定记录,用printer对象写打印代码 '*********************************** '1毫米=0.03937英寸 '1英寸=1440提(twips) 'A4纸=191毫米*210毫米 '*********************************** Printer.ScaleMode = vbTwips PrnUnit = 0.03937 * 1440 '设置最小打印单位 '单据日期 Printer.CurrentX = (fHead_Left + 105) * PrnUnit Printer.CurrentY = (fHead_Top + 14) * PrnUnit Printer.Print Format(ar_PV!dVouchDate, "yyyy-mm-dd") '发票号码 printer.CurrentX = (fHead_Left + 135) * PrnUnit Printer.CurrentY = (fHead_Top + 14) * PrnUnit Printer.Print "发票号码:" '客户名称 Printer.CurrentX = (fHead_Left + 24) * PrnUnit Printer.CurrentY = (fHead_Top + 20) * PrnUnit Printer.Print Trim(txtcCusName.Text) '单据号码 Printer.CurrentX = (fHead_Left + 135) * PrnUnit Printer.CurrentY = (fHead_Top + 20) * PrnUnit Printer.Print Right(Trim(VouchID), 8) '第几页/共几页 Printer.CurrentX = (fHead_Left + 170) * PrnUnit Printer.CurrentY = (fHead_Top + 20) * PrnUnit Printer.Print "第" + Trim(Str(i_Page)) + "页/共" + Trim(Str(i_SumPages)) + "页" www.skyrising.com 内有不少实例,自己看看 怎么显示下列treeview结构> 请大家提供一个打开文件对话框,并把文件内容读取到TextBox中的例子 求助关于faxcom.dll的问题。 问一个简单的算法,能做出来,但不知道什么样的算法是最简单的. 为什么我的CAB安装包不能自动下载安装?(在线等待) 子窗口居中不起作用 用API改变鼠标形状?? 请问如何得到一个窗体上所有菜单的各项信息?! 移动图形,在线,急 在线等待!数据库问题 有人知道四川苍溪地震的情况吗? 快告诉我
'1毫米=0.03937英寸
'1英寸=1440提(twips)
'A4纸=191毫米*210毫米
'***********************************
Printer.ScaleMode = vbTwips
PrnUnit = 0.03937 * 1440 '设置最小打印单位 '单据日期
Printer.CurrentX = (fHead_Left + 105) * PrnUnit
Printer.CurrentY = (fHead_Top + 14) * PrnUnit
Printer.Print Format(ar_PV!dVouchDate, "yyyy-mm-dd")
'发票号码
printer.CurrentX = (fHead_Left + 135) * PrnUnit
Printer.CurrentY = (fHead_Top + 14) * PrnUnit
Printer.Print "发票号码:"
'客户名称
Printer.CurrentX = (fHead_Left + 24) * PrnUnit
Printer.CurrentY = (fHead_Top + 20) * PrnUnit
Printer.Print Trim(txtcCusName.Text)
'单据号码
Printer.CurrentX = (fHead_Left + 135) * PrnUnit
Printer.CurrentY = (fHead_Top + 20) * PrnUnit
Printer.Print Right(Trim(VouchID), 8)
'第几页/共几页
Printer.CurrentX = (fHead_Left + 170) * PrnUnit
Printer.CurrentY = (fHead_Top + 20) * PrnUnit
Printer.Print "第" + Trim(Str(i_Page)) + "页/共" + Trim(Str(i_SumPages)) + "页"