Solved

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

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
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 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) …

760 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

24 Experts available now in Live!

Get 1:1 Help Now