会员登录 - 用户注册 - 网站地图 Office中国(office-cn.net),专业Office论坛
当前位置:主页 > 技巧 > Access技巧 > 模块函数VBA > 正文

《打印格式如何控制横打》

时间:2009-05-20 09:02 来源:accesssoft 作者:UMVSoft整… 阅读:

打印格式如何控制横打

Private Sub com_rpt_hue_exist_qry_cust_Click()
On Error GoTo Err_com_rpt_hue_exist_qry_cust_Click

 Dim stdocname As String
 Dim prt As Printer
 Set prt = Application.Printers(0)
 prt.PaperSize = acPRPSA4
 prt.Orientation = acPRORLandscape

 stdocname = "hue_exist_mount_qry_cust"
 DoCmd.OpenReport stdocname, acPreview
 Reports(stdocname).Printer = prt

Exit_com_rpt_hue_exist_qry_cust_Click:
Exit Sub
Err_com_rpt_hue_exist_qry_cust_Click:
MsgBox Err.Description
Resume Exit_com_rpt_hue_exist_qry_cust_Click

End Sub

(责任编辑:admin)

顶一下
(0)
0%
踩一下
(1)
100%
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价: