Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
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

VB
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

VB
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..

Thanks,
Thams
Posted
Updated 7-Jul-13 19:18pm
v2
Comments
[no name] 12-Jun-13 6:55am    
The Kingsoft support people likely know....
thams 14-Jun-13 2:06am    
Already posted in their forums, but no luck.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900