使用VBA将多个访问报告合并到一个pdf文件 [英] Merge multiple access reports to one pdf file using vba

查看:537
本文介绍了使用VBA将多个访问报告合并到一个pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不会使用vba代码将多个访问报告合并到一个pdf文件中.此vba代码需要在我工作的计算机上工作.这些计算机仅包含Adobe Reader,并且由于我不是管理员,所以无法安装Acrobat.因此,现在我的代码为所有报告生成了单独的pdf.我有一些代码将这些pdf文件合并为一个使用"Acrobat.CAcroApp"的pdf文件.但是我在网上遇到了一个错误:

I wan't to merge multiple access reports to one pdf file using vba code. This vba code needs to work on the computers at my work. These computers only contain Adobe Reader, and I am not able to install Acrobat because I am not Administrator. So now my code generates for all the reports a seperate pdf. I had some code to merge these pdf files to one pdf file where I use 'Acrobat.CAcroApp'. But i get an error on line:

Set AcroApp = CreateObject("AcroExch.App")

我认为我无法执行此操作,因为计算机仅安装了Adobe Reader.是否可以在不使用Acrobat的情况下为多个报告/pdf创建一个pdf文件.

I think I am not able to do this cause the computers only have Adobe Reader installed. Is there a possibility to create one pdf file for multiple reports/pdfs without using Acrobat.

提前谢谢

推荐答案

2个解决方案.

  1. 制作一个主报告,该报告将每个单独的报告嵌入为子报告.如果只有几个,它应该可以正常工作,但是太多的代码可能会使应用程序陷入瘫痪/崩溃.
  2. 这是VBA的一种实现方法,此处.

这篇关于使用VBA将多个访问报告合并到一个pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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