Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

820 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