Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2003
    Posts
    6

    Oops Acrobat running in tray when project closes

    I am opening acrobat documents in a browser inside the program.
    when i close the program, Acrobat is still running in the system tray, and unable to open .pdf's in windows explorer.

    any tips on how i can close acrobat on project destroy.?

  2. #2
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    Hi JasonWosak

    You can use Window.Close to close any window.

    Assuming you are using reader and always the same pdf file, the easiest way is to type the hWnd EXACTLY as it appears in acrobat reader title bar -ie:

    Acrobat Reader - [FileName.pdf]

    If you are using multiple pdf files, you should use Window.Find to get the value for open reader windows and use Window.Close to close them. Hope this helps
    Shout if you need anymore .

  3. #3
    Join Date
    Feb 2003
    Posts
    6
    It is not a window that is on the taskbar, it is running in the background in the systray.

    it says cannot find window when i set the filename to that variable, also tried Acrobat.exe to that variable.

    it is titled Acrobat.exe in the Task Manager - Processes.

    Is there a better way to open a pdf besides a browser window?
    and still have it contained in the application?

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Check this thread. It discusses how to search for a list of windows, and then find if they match the Acrobat name within the window, you can then use that to close the window. This will work with the acrotray.exe application that is found when using Acrobat.

    Tigg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts