How do I use VB6 Shell with acrobat reader 8

Posted on 2009-04-16
Last Modified: 2013-11-26
I have used Acrobat Reader to pop up forms from a VB app populated via an FDF file constructed in the app. The Shell command Shell(<Adobe Reader Path> <FDF Path>) has worked for 5,6 and 7 but doesn't work for 8. Does anyone know why and what the solution is.
sDataFile = "C:\program Files\Directer\Letter\Formdata.fdf"

dAcroWin = Shell("C:\Program Files\Adobe\Acrobat 7.0\Reader\Acrord32.exe " & sDataFile, vbMaximizedFocus)

Open in new window

Question by:slakopa
    LVL 48

    Expert Comment

    What version are you using of VB ?
    Have you tried already to use only the file name without the path to Acrord32.exe ?

    Author Comment

    I'm using VB6. Yes I've tried just calling the FDF that just generates a different error. The error that I do get from 8 is after the reader loads it returns a fiFile Not found message.
    LVL 48

    Accepted Solution


    Author Closing Comment

    The solution while using a different technique had a lot to recommend it although it did directly answer the question it solved the problem.

    Author Comment

    Typo in last. Should have read "did NOT directly answer the question"

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    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…
    PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    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…

    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

    7 Experts available now in Live!

    Get 1:1 Help Now