Answered by:
C# 0x800401E3 (MK_E_UNAVAILABLE)

Question
-
Hello,
Create Windows Service.
Service returns the number of word documents that are open on the computer.
But this code gives an error. But this code, not error by c# form authantication.Application winObj = (Application)Marshal.GetActiveObject("Word.Application");
foreach (var item in winObj.Documents)
{
count++;
}(HRESULT özel durum döndürdü: 0x800401E3 (MK_E_UNAVAILABLE))
1905
- Edited by Özliimm Monday, November 12, 2018 2:26 PM
- Moved by Stanly Fan Tuesday, November 13, 2018 1:28 AM From Winform
Monday, November 12, 2018 12:08 PM
Answers
-
This is "where is" forum for direction on where best to ask questions. This one might help
or I'd try asking over here.
https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev
or help with scripting object over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Tuesday, November 13, 2018 1:25 PM
- Marked as answer by Richard MuellerMVP, Banned Tuesday, November 20, 2018 4:20 PM
Tuesday, November 13, 2018 1:14 PM
All replies
-
Hi,
According to your description, your issue is more related about Windows Service. And this forum is discussing and asking questions about the Windows Form and ClickOnce, I will move this thread to Where is the Forum for...? forum to redirect it.
Thank you for your understanding.
Regards,
Stanly
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.Tuesday, November 13, 2018 1:27 AM -
I'd try asking for help over here.
https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev
0x800401E3 https://support.microsoft.com/en-us/help/238610/getobject-or-getactiveobject-cannot-find-a-running-office-application
or help with scripting object over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.
- Proposed as answer by Stanly Fan Tuesday, November 13, 2018 1:48 AM
- Edited by Dave PatrickMVP Tuesday, November 13, 2018 1:57 AM
Tuesday, November 13, 2018 1:47 AM -
I want to find the number of word documents that are open on the computer.
I will use another dll. Which dll will use it. I do not understand.
1905
Tuesday, November 13, 2018 1:08 PM -
This is "where is" forum for direction on where best to ask questions. This one might help
or I'd try asking over here.
https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev
or help with scripting object over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Richard MuellerMVP, Banned Tuesday, November 13, 2018 1:25 PM
- Marked as answer by Richard MuellerMVP, Banned Tuesday, November 20, 2018 4:20 PM
Tuesday, November 13, 2018 1:14 PM -
I dont understand :(
1905
Tuesday, November 13, 2018 1:31 PM -
You posted in winforms forum but they moved it here because it was out of scope for that forum.
The code snippet appears to be scripting language using word object model so I'd ask for help over here.
https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=worddev
or help with scripting over here.
https://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG
(I don't think the error is a C# error. 0x800401E3 https://support.microsoft.com/en-us/help/238610/getobject-or-getactiveobject-cannot-find-a-running-office-application)
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.
- Edited by Dave PatrickMVP Tuesday, November 13, 2018 1:46 PM
Tuesday, November 13, 2018 1:45 PM