View Full Version : Acrobat running in tray when project closes
JasonWosak
11-06-2003, 04:03 PM
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.?
Derek
11-06-2003, 05:46 PM
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 .
JasonWosak
11-07-2003, 09:48 AM
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?
TJ_Tigger
11-07-2003, 10:41 AM
Check this (http://www.indigorose.com/forums/showthread.php?s=&threadid=2440&highlight=acro) 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
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.