I am opening a PDF file in Acrobat then am sending the Menu keys using sendkeys.
AcroHandle gets the value but the send keys always working with my .Net IDE. It is opening the .Net IDE file open menu. It supposed to open Acrobat File open.
Please find the code which i am using.
AcroHandle gets the value but the send keys always working with my .Net IDE. It is opening the .Net IDE file open menu. It supposed to open Acrobat File open.
Please find the code which i am using.
VB.NET:
AcroXAVDoc.Open(FileName, "Acrobat")
AcroHandle = FindWindow(vbNullString, "Acrobat - Adobe Acrobat Professional")
If (AcroHandle <> 0) Then
SetForegroundWindow(AcroHandle)
System.Windows.Forms.SendKeys.SendWait("%(FO)")
End If