Click here to Skip to main content
11,789,424 members (45,593 online)
Rate this: bad
Please Sign up or sign in to vote.
I'm using KSO (KingSoft Office) spreadsheet in my 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..

Posted 12-Jun-13 0:50am
Edited 7-Jul-13 19:18pm
ThePhantomUpvoter at 12-Jun-13 6:55am
The Kingsoft support people likely know....
thams at 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)

  Print Answers RSS
0 OriginalGriff 929
1 Maciej Los 765
2 KrunalRohit 666
3 CPallini 606
4 Richard MacCutchan 420

Advertise | Privacy | Mobile
Web04 | 2.8.1509028.1 | Last Updated 8 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100