I'm using KSO (KingSoft Office) spreadsheet in my vb.net winforms application. In some machines Microsoft excel has been installed and in some KSO. I'm able to identify what is installed. And if Microsoft excel is installed I create and excel application through code and get the window handle like
Dim oa = New Microsoft.Office.Interop.Excel.Application
ExcelWnd = oa.Hwnd
Like this I need to get the handle to KSO spreadsheet application. I've created KSO as
Dim oaKSO = New ET.Application
But osKSO.Hwnd or similar property is not available.
How to get that?
As a workaround...
I'm able to create ET.Application.
Is it possible to get the handle through looping the process list or some thing related to processes like getProcessByID etc..?
Or any other win32 functions..
Edited 7-Jul-13 20:18pm
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)