4 replies
by cdaringer
The adobe sdk uses an assync model. That means that the process is not deterministic. Sooo...
you create the process and then monitor it.
similar to ADO which is also assync in nature or disconected recordsets.
email me at cdaringer@yahoo.com and I'll slip you some code...
you get yer own sdk.
by ryandh2001
Is this what you are looking for?
by manoj_india
If you only want to launch the pdf application just to view file then you can use Shell or ShellExecute.
If you want to monitor the file then you can use CreateProcess, so that you will get the Process Handle.
Regards
by mickeyf
Note: This is untested, and you'll need to make a function or subroutine out of the code. Also, REG_QueryValue is an encapsulation of RegOpenKeyEx, RegQueryValueEx and RegCloseKey. Look at your API help to figure that part out.
Dim AcrobatPath As String
Const ACROBATAPPPATHKEY = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe"
AcrobatPath = REG_QueryValue(HKEY_LOCAL_MACHINE, ACROBATAPPPATHKEY, "", "")
If (AcrobatPath <> "") Then
Shell AcrobatPath + " " + Trim$(Command$), vbNormalFocus
Else
MsgBox "Adobe Acrobat Reader must be installed.", vbInformation
End If
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending