OutputTo在运行时发出

OutputTo在运行时发出

问题描述:

您好

访问在Access 2007 环境中运行的2000 mdb / mde。

Access 2000 mdb/mde running in Access 2007 environment.

我使用下面的代码使用不同的过滤器连续打印出几个报告实例。

I am using below code to print out several instances of a report in a row using different filters.

DoCmd.OpenReport ReportName, acViewPreview, , Filter
DoCmd.OutputTo acOutputReport, , acFormatPDF, PDFName, False
DoCmd.Close acReport, ReportName

当它在Access 2007中作为mdb运行时,它工作正常;报告预览逐个显示并保存为PDF文件。但是,当我在部署方案中使用Access 2007运行时运行相同的代码时,创建后的每个PDF都会在Adobe Reader中自动打开
,从而使屏幕混乱并使用户感到困惑。请问在使用Access 2007运行时,如何在acrobat Reader中打开保存的PDF?

When it is run in Access 2007 as mdb it works fine; reports previews appear one by one and get saved into PDF files. However when I run the same code in deployed scenario with Access 2007 runtime then each PDF after being created is automatically opened in Adobe Reader thus cluttering the screen and confusing the user. How can I supress opening of saved PDFs in the acrobat Reader when using Access 2007 runtime please?

谢谢

问候

有您是否尝试使用最新的Service Pack更新Access 2007 Runtime?

Have you tried to update the Access 2007 Runtime with the latest service pack?

美好的一天。