执行2007年的访问报告和导出该报告为PDF编程? [英] Execute Access 2007 Report and Export that Report to PDF Programmatically?

查看:128
本文介绍了执行2007年的访问报告和导出该报告为PDF编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Access 2007数据库中的一个很大的报告,并希望自动执行报告的执行和出口。这是可能的,什么是在把它关闭所需的方法,你的第一个猜想?

I have a great report in an Access 2007 Database and would like to automate the execution and exportation of that report. Is this possible and what would be your first guess at the method needed to pull it off?

推荐答案

您应该能够使用DoCmd.OutputTo方法实现自动化。我想,PDF功能需要SP1的A2007。这里有一个简单的例子:

You should be able to automate using the DoCmd.OutputTo method. I think the PDF feature requires SP1 for A2007. Here's a simple example:

DoCmd.OutputTo acOutputReport,"rptFoo",acFormatPDF,"D:\Access\rptFoo.pdf"

看MSDN的页面了解详情: DoCmd.OutputTo方法

这篇关于执行2007年的访问报告和导出该报告为PDF编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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