Convert PS file in PDF file in VBA

Posted on 2006-06-06
Last Modified: 2011-04-14

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\", "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\", "u:\fichierpdf\fichier1.pdf", ""

but it's the same problem

What is possible to avoid it?

Thank you
Question by:KarlVeilleux
    LVL 23

    Expert Comment

    by:Jens Fiederer
    Do you have Acrobat Distiller installed on your PC?

    Author Comment

    Yes I have Acrobat Distiller.
    LVL 25

    Accepted Solution

    See if this describes your problem:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now