Solved

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

Posted on 2003-11-03
2
1,715 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

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 to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
In a previous article published here at Experts Exchange, Signature Image with Transparent Background (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_12380-Signature-Image-with-Transparent-Background.html), I explained how to cre…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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