Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
General Declarations ''''''''''''''''' Private Const SW_SHOWNORMAL = 0.75 Private Const SW_CLOSE = True Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _ (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _ ByVal lpParameters As String, ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long '''''''''''''''' Form Activate '=== Put in the routine to display the PDF file ================================== 'Note: the PassString(6) carries the directory path and name of the previously ' saved PDF file ShellExecute Me.hwnd, "open", PassString(6), vbNullString, _ vbNullString, SW_SHOWNORMAL 'Note: The above code seems to work fine. '====================================================================== This is my attempt to close the file so that when Form Unload ShellExecute Me.hwnd, "close", PassString(6), vbNullString, vbNullString, 1 ' Note: the code executes but the PDF file is not closed, it just moves down to ' the task bar at bottom of screen
Join the community of 500,000 technology professionals and ask your questions.