Announcement

Collapse
No announcement yet.

PDF checking problem.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PDF checking problem.

    Hello all!
    Here is the problem I am having.....

    When my program does this action:
    IF ((%CheckForPDF2% = TRUE))
    %pdfviewer% = File.GetDefaultViewer (".pdf")
    %pdfversion% = File.GetInformation (Version, "%pdfviewer%")

    I get the 2 attached alarms.

    Can anyone give me some advice on how to fix?

    Thanks,
    Tom

    26974-error1.jpg

  • #2
    Re: PDF checking problem.

    Here is the other file.

    26975-error2.jpg

    Comment


    • #3
      Re: PDF checking problem.

      There are some great scripts for pdf checking in this thread

      Worth a look.
      Regards,

      -Ron

      Music | Video | Pictures

      Comment


      • #4
        Re: PDF checking problem.

        It looks like your check for .pdf is not working. Do you have AcroRead installed on your machine? The first error shows that AMS is not able to find an association for .pdf. I agree with rhosk in looking at the other thread. It contains some great scripts. You may want to set the %pdfviewer% to "NOTFOUND" and then check to see if %pdfviewer% = "NOTFOUND" after you run your check. If it does there is not a default viewer associated with the extension .pdf.

        The second error happens due to the fact that %pdfviewer% is not populated with the default viewer.

        Tigg
        TJ-Tigger
        "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
        "Draco dormiens nunquam titillandus."
        Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

        Comment


        • #5
          Re: PDF checking problem.

          Thanks guys!
          It was kind of weird....the only time this happened is when I ran it from my computer. Six other computers have no problem. I reinstalled Adobe Acrobat 6.0 and (go figure) the errors go bye-bye!...lol I think my registry was acting goofy!

          I do appreciate the input as always!

          Tom

          Comment

          Working...
          X