需要另一种方法来创建pdf [英] Need an alternate method to create a pdf

查看:79
本文介绍了需要另一种方法来创建pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用:

strRptFilter =" [Invoice Number] =" &安培; invnum

DoCmd.OutputTo acOutputReport,"InvoicePDF",acFormatPDF,(" c:\PDFInvoices \"& invnum&" .pdf"),False

strRptFilter = "[Invoice Number]=" & invnum
DoCmd.OutputTo acOutputReport, "InvoicePDF", acFormatPDF, ("c:\PDFInvoices\" & invnum & ".pdf"), False

其中strRptFilter是报告的在打开事件

where strRptFilter is the On Open Event of the Report

的问题是它需要约2分钟至创建的每个PDF。如果我使用.xps作为格式,它会很快处理。如果我在几秒钟内打开访问中的报告。我需要使用.pdf,但文件创建之间不能有2分钟。

The problem is it takes about 2 minutes to create each pdf. If I use .xps as the format it processes very quickly. If I run the report in access in opens in seconds. I need to use .pdf, but cannot have 2 minutes between file creation.

是否有另一种创建pdf的方法。

Is there another method to create a pdf.

任何想法或建议表示赞赏。

Any thoughts or suggestions are appreciated.

Steve

Steve Pollere

Steve Pollere

推荐答案

您好,

我正在使用:

strRptFilter =" [Invoice Number] =" &安培; invnum

DoCmd.OutputTo acOutputReport,"InvoicePDF",acFormatPDF,(" c:\PDFInvoices \"& invnum&" .pdf"),False

strRptFilter = "[Invoice Number]=" & invnum
DoCmd.OutputTo acOutputReport, "InvoicePDF", acFormatPDF, ("c:\PDFInvoices\" & invnum & ".pdf"), False

其中strRptFilter是报告的On Open事件

where strRptFilter is the On Open Event of the Report

问题是创建每个pdf大约需要2分钟。如果我使用.xps作为格式,它会很快处理。如果我在几秒钟内打开访问中的报告。我需要使用.pdf,但文件创建之间不能有2分钟。

The problem is it takes about 2 minutes to create each pdf. If I use .xps as the format it processes very quickly. If I run the report in access in opens in seconds. I need to use .pdf, but cannot have 2 minutes between file creation.

是否有另一种创建pdf的方法。

Is there another method to create a pdf.

任何想法或建议表示赞赏。

Any thoughts or suggestions are appreciated.

Steve


这篇关于需要另一种方法来创建pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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