OutputTo在运行时发出 [英] OutputTo issue in runtime

查看:70
本文介绍了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?

美好的一天。


这篇关于OutputTo在运行时发出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆