【问题标题】:Printing Report in MS Access 2007在 MS Access 2007 中打印报告
【发布时间】:2012-09-20 11:07:15
【问题描述】:

我是 Access 的新手,在这里需要一些帮助。我正在使用 SQL 2008 Server 作为我的数据库来开发 MS Access 2007(在 VB 中)。

我正在打印已保存在按钮单击事件中的报告。 一切正常,可以打印报告,但在打印报告后,它还会打印包含该按钮的表单。 这是我在 Button_click 上编写的代码:

DoCmd.OpenReport "ReportName"
DoCmd.PrintOut

有什么建议吗??

【问题讨论】:

    标签: vba ms-access-2007


    【解决方案1】:

    DoCmd.OpenReport Method

    expression.OpenReport(ReportName, View, FilterName, WhereCondition, WindowMode, OpenArgs)

    DoCmd.OpenReport, "report", acViewNormal
    

    您应该不需要 PrintOut。

    【讨论】:

    • 是的!不需要 DoCmd.PrintOut !!太感谢了 !! :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-21
    相关资源
    最近更新 更多