【问题标题】:OutPutTo Eliminate SaveAs Dialog BoxOutPutTo 消除另存为对话框
【发布时间】:2013-06-23 17:39:13
【问题描述】:

我目前使用的是 Microsoft Access 2010。有没有办法消除“另存为”对话框?运行它显示的命令后,然后当您单击取消时,它会将报告打印到正确的位置。这是每次都会显示的细微差别。

Public Sub PrintReportToPDF(ByRef strReport As String, ByRef FilePathandFileName As String) 

    On Error GoTo ErrHandler
    DoCmd.SetWarnings False

    DoCmd.OpenReport strReport, acViewNormal
    DoCmd.OutputTo acOutputReport, strReport, acFormatPDF,   
    FilePathandFileName & ".pdf", False, "", 0, acExportQualityPrint


ExitHere:
    DoCmd.SetWarnings True
    Exit Function

ErrHandler:
    MsgBox Err.Description
    Resume ExitHere

End Sub

【问题讨论】:

    标签: vba pdf ms-access-2010 save-as


    【解决方案1】:

    没关系,我知道为什么会显示 PDF 另存为对话框。您需要更改 Print2Pdf 软件中的配置。它与实际代码本身无关。

    【讨论】:

      猜你喜欢
      • 2011-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-27
      • 2015-01-08
      相关资源
      最近更新 更多