[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1209
  • Last Modified:

Convert PS file in PDF file in VBA

Hello,

I used those lines in VBA to convert PS file in pdf :

...
Dim acr As ACRODISTXLib.PdfDistiller
Set acr = New ACRODISTXLib.PdfDistiller
acr.bShowWindow = False
acr.FileToPDF "u:\fichierpdf\fichier1.ps", "u:\fichierpdf\fichier1.pdf", ""

but the second line don't pass

The message return is "Active x don't create object"

I also tried
Dim acr As ACRODISTXLib.PdfDistiller6
Set acr = New ACRODISTXLib.PdfDistiller6
acr.bShowWindow = False
acr.FileToPDF "u:\fichierpdf\fichier1.ps", "u:\fichierpdf\fichier1.pdf", ""

but it's the same problem

What is possible to avoid it?

Thank you
0
KarlVeilleux
Asked:
KarlVeilleux
1 Solution
 
Jens FiedererCommented:
Do you have Acrobat Distiller installed on your PC?
0
 
KarlVeilleuxAuthor Commented:
Yes I have Acrobat Distiller.
0
 
dstanley9Commented:
See if this describes your problem:

http://p2p.wrox.com/archive/pro_vb/2002-01/53.asp
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now