Solved

AcroRd32.exe file not found when try to Print a PDF file

Posted on 2003-11-03
2
1,710 Views
Last Modified: 2008-02-01
Hi :
   The acrobat 6 has been installed in my PC.
   The file  'C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe' can not be found.
   when I ran the fillowing codes, I got 'File not Found' error message.
   
   

 
'This method prints the PDF c:\temp\filetoprint.pdf
Option Explicit ' Force variable declaration
' of an organisation

Sub PrintAPDFUsingTheFreeAcrobatReader()
Dim strCommandLine As String
Dim strPrinterName As String
Dim strDriverName As String
Dim strPortName As String
Dim strFileNameToPrint As String

strFileNameToPrint = "c:\temp\filetoprint.pdf"

strPrinterName = Printer.DeviceName
strDriverName = Printer.DriverName
strPortName = Printer.Port

' Perform some error checking here
strCommandLine = "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe /t """ + _
strFileNameToPrint + """ """ + _
strPrinterName + """ """ + _
strDriverName + """ """ + _
strPortName + """" 

If (Shell(strCommandLine, vbHide) <> 0)Then
MsgBox "Job has been sent to the printer using the command " + strCommandLine
End If
End Sub


Thanks.
0
Comment
Question by:JanePai
  • 2
2 Comments
 
LVL 4

Expert Comment

by:antonieraj
ID: 9802594
Hi Janepai

You have installed Acrobat 6 and was search for Acrobat 5 Reader exe in the machine. The above code for Acrobat Reader 5's

If u have installed Acrobat Reader 6 then the path could be like

"C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe"

If u have installed Acrobat professional then the path could be like

"C:\Program Files\Adobe\Acrobat 6.0\Acrobat\Acrobat.exe"

Assuming u have installed programs in C drive only...

0
 
LVL 4

Accepted Solution

by:
antonieraj earned 250 total points
ID: 9896668
Hi Janepai

Whether u have solved the problem ?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe A recent question here at Experts Exchange piqued my interest, so I decided to provide a thorough solution and publ…
Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…

896 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

11 Experts available now in Live!

Get 1:1 Help Now