• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1218
  • 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 FiedererTest Developer/ValidatorCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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