<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Access Microsoft Excel 2007 COM API through Microsoft Active Accessibility</title>
	<atom:link href="http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/</link>
	<description>Programming Examples, Samples, and Tutorials</description>
	<lastBuildDate>Thu, 22 Dec 2011 07:05:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: Jeff Gibeau</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-968</link>
		<dc:creator>Jeff Gibeau</dc:creator>
		<pubDate>Fri, 09 Jul 2010 13:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-968</guid>
		<description>KTTransfer, it sounds like you have a reference that has not been released.  This is pretty common with handling Microsoft Office through COM.  It may take some time, but you will need to go over your code with a fine tooth comb.
If you are just using the code above, it looks like in my original code I even forgot to release the pWindow object after obtaining the application.  This in itself could cause the application to hang even after all windows are closed.  I&#039;ve now updated the code.</description>
		<content:encoded><![CDATA[<p>KTTransfer, it sounds like you have a reference that has not been released.  This is pretty common with handling Microsoft Office through COM.  It may take some time, but you will need to go over your code with a fine tooth comb.<br />
If you are just using the code above, it looks like in my original code I even forgot to release the pWindow object after obtaining the application.  This in itself could cause the application to hang even after all windows are closed.  I&#8217;ve now updated the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KTTransfer</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-967</link>
		<dc:creator>KTTransfer</dc:creator>
		<pubDate>Fri, 09 Jul 2010 10:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-967</guid>
		<description>I am not getting E_FAIL. Everything is just working as expected. But one issue: when Excel is closed by user, Excel.exe is not getting killed from task manager. Say if we are accessing 7 different Excel.exe&#039;s then those many will run in the taskmanager even if user closes Excel workbooks. I tried releasing the Worbook*, _ApplicationPtr but Excel.exe is still running. Implicitly it should be closed but its not.Want to try killing explicitly by checking the number of workbooks. if number of workbooks are 0 then i can kill explicitly, please guide me to solve this issue.</description>
		<content:encoded><![CDATA[<p>I am not getting E_FAIL. Everything is just working as expected. But one issue: when Excel is closed by user, Excel.exe is not getting killed from task manager. Say if we are accessing 7 different Excel.exe&#8217;s then those many will run in the taskmanager even if user closes Excel workbooks. I tried releasing the Worbook*, _ApplicationPtr but Excel.exe is still running. Implicitly it should be closed but its not.Want to try killing explicitly by checking the number of workbooks. if number of workbooks are 0 then i can kill explicitly, please guide me to solve this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Gibeau</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-757</link>
		<dc:creator>Jeff Gibeau</dc:creator>
		<pubDate>Fri, 30 Apr 2010 18:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-757</guid>
		<description>To all having the E_FAIL return issue, you will have to be in process in order for this to work.  Unfortunately I can&#039;t go further into detail on how to get in process.
As for the classnames you are iterating through with enumchildren, you are only looking at the first letter of the classname.  Look at the windows with Spy++ to verify the EXCEL7 window exists.</description>
		<content:encoded><![CDATA[<p>To all having the E_FAIL return issue, you will have to be in process in order for this to work.  Unfortunately I can&#8217;t go further into detail on how to get in process.<br />
As for the classnames you are iterating through with enumchildren, you are only looking at the first letter of the classname.  Look at the windows with Spy++ to verify the EXCEL7 window exists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-578</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sun, 07 Mar 2010 20:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-578</guid>
		<description>Actually there is just no child window of class &quot;EXCEL7&quot; on my version of Excel 2007.
Here are the child windows of that I enumerated through EnumChildWindows():
class &quot;E&quot; with hwnd=0x3a0934
class &quot;M&quot; with hwnd=0x60c88
class &quot;M&quot; with hwnd=0xc40668
class &quot;N&quot; with hwnd=0x98012c
class &quot;N&quot; with hwnd=0x330bd2
class &quot;E&quot; with hwnd=0x2406a2
class &quot;M&quot; with hwnd=0x5b074c
class &quot;M&quot; with hwnd=0x600bac
class &quot;N&quot; with hwnd=0x3c0120
class &quot;N&quot; with hwnd=0x420798
class &quot;N&quot; with hwnd=0xd0c74
class &quot;N&quot; with hwnd=0x9f0498
class &quot;N&quot; with hwnd=0x140bd8
class &quot;E&quot; with hwnd=0x430582
class &quot;N&quot; with hwnd=0x190990
class &quot;N&quot; with hwnd=0x8a06c2
class &quot;E&quot; with hwnd=0x70c82
class &quot;E&quot; with hwnd=0x70c6c
class &quot;C&quot; with hwnd=0xd0c7a
class &quot;E&quot; with hwnd=0x150c72
class &quot;E&quot; with hwnd=0x760852
class &quot;N&quot; with hwnd=0x30d02
class &quot;N&quot; with hwnd=0x470c4e
class &quot;E&quot; with hwnd=0xf0c6e
class &quot;E&quot; with hwnd=0x910550
class &quot;E&quot; with hwnd=0x1f05d8
class &quot;E&quot; with hwnd=0x2d0a46
class &quot;E&quot; with hwnd=0x3909fe
class &quot;E&quot; with hwnd=0x500526
class &quot;X&quot; with hwnd=0x2f05b2
class &quot;E&quot; with hwnd=0xc0c50
class &quot;N&quot; with hwnd=0xb40c8a
class &quot;N&quot; with hwnd=0x250834
class &quot;N&quot; with hwnd=0x46071e
class &quot;N&quot; with hwnd=0x2c072e
class &quot;X&quot; with hwnd=0x1f070a
class &quot;X&quot; with hwnd=0x2008a8
class &quot;X&quot; with hwnd=0x170c5a
class &quot;S&quot; with hwnd=0x3a0750
class &quot;E&quot; with hwnd=0x56054e
class &quot;M&quot; with hwnd=0x2e083e
class &quot;M&quot; with hwnd=0x170bd6</description>
		<content:encoded><![CDATA[<p>Actually there is just no child window of class &#8220;EXCEL7&#8243; on my version of Excel 2007.<br />
Here are the child windows of that I enumerated through EnumChildWindows():<br />
class &#8220;E&#8221; with hwnd=0x3a0934<br />
class &#8220;M&#8221; with hwnd=0x60c88<br />
class &#8220;M&#8221; with hwnd=0xc40668<br />
class &#8220;N&#8221; with hwnd=0x98012c<br />
class &#8220;N&#8221; with hwnd=0x330bd2<br />
class &#8220;E&#8221; with hwnd=0x2406a2<br />
class &#8220;M&#8221; with hwnd=0x5b074c<br />
class &#8220;M&#8221; with hwnd=0x600bac<br />
class &#8220;N&#8221; with hwnd=0x3c0120<br />
class &#8220;N&#8221; with hwnd=0&#215;420798<br />
class &#8220;N&#8221; with hwnd=0xd0c74<br />
class &#8220;N&#8221; with hwnd=0x9f0498<br />
class &#8220;N&#8221; with hwnd=0x140bd8<br />
class &#8220;E&#8221; with hwnd=0&#215;430582<br />
class &#8220;N&#8221; with hwnd=0&#215;190990<br />
class &#8220;N&#8221; with hwnd=0x8a06c2<br />
class &#8220;E&#8221; with hwnd=0x70c82<br />
class &#8220;E&#8221; with hwnd=0x70c6c<br />
class &#8220;C&#8221; with hwnd=0xd0c7a<br />
class &#8220;E&#8221; with hwnd=0x150c72<br />
class &#8220;E&#8221; with hwnd=0&#215;760852<br />
class &#8220;N&#8221; with hwnd=0x30d02<br />
class &#8220;N&#8221; with hwnd=0x470c4e<br />
class &#8220;E&#8221; with hwnd=0xf0c6e<br />
class &#8220;E&#8221; with hwnd=0&#215;910550<br />
class &#8220;E&#8221; with hwnd=0x1f05d8<br />
class &#8220;E&#8221; with hwnd=0x2d0a46<br />
class &#8220;E&#8221; with hwnd=0x3909fe<br />
class &#8220;E&#8221; with hwnd=0&#215;500526<br />
class &#8220;X&#8221; with hwnd=0x2f05b2<br />
class &#8220;E&#8221; with hwnd=0xc0c50<br />
class &#8220;N&#8221; with hwnd=0xb40c8a<br />
class &#8220;N&#8221; with hwnd=0&#215;250834<br />
class &#8220;N&#8221; with hwnd=0x46071e<br />
class &#8220;N&#8221; with hwnd=0x2c072e<br />
class &#8220;X&#8221; with hwnd=0x1f070a<br />
class &#8220;X&#8221; with hwnd=0x2008a8<br />
class &#8220;X&#8221; with hwnd=0x170c5a<br />
class &#8220;S&#8221; with hwnd=0x3a0750<br />
class &#8220;E&#8221; with hwnd=0x56054e<br />
class &#8220;M&#8221; with hwnd=0x2e083e<br />
class &#8220;M&#8221; with hwnd=0x170bd6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-577</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sun, 07 Mar 2010 18:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-577</guid>
		<description>Same issue with Excel 2007 : returns E_FAIL</description>
		<content:encoded><![CDATA[<p>Same issue with Excel 2007 : returns E_FAIL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NarVish</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-194</link>
		<dc:creator>NarVish</dc:creator>
		<pubDate>Wed, 25 Nov 2009 09:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-194</guid>
		<description>I&#039;m getting the same error message E_FAIL as it was posted by VLSJ. I&#039;m using Excel 2007. Please help us to resolve this issue.
Thak you.</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the same error message E_FAIL as it was posted by VLSJ. I&#8217;m using Excel 2007. Please help us to resolve this issue.<br />
Thak you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VLSJ</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-151</link>
		<dc:creator>VLSJ</dc:creator>
		<pubDate>Tue, 10 Nov 2009 07:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-151</guid>
		<description>Great to see the useful article. Thanks for posting. 
I&#039;m getting E_FAIL message in hr at below line.

HRESULT hr = AccessibleObjectFromWindow(hwnd, OBJID_NATIVEOM, __uuidof(Excel::Window), (void**)&amp;pWindow); 
              
Please let me know your suggestions. A million thanks in advance.</description>
		<content:encoded><![CDATA[<p>Great to see the useful article. Thanks for posting.<br />
I&#8217;m getting E_FAIL message in hr at below line.</p>
<p>HRESULT hr = AccessibleObjectFromWindow(hwnd, OBJID_NATIVEOM, __uuidof(Excel::Window), (void**)&amp;pWindow); </p>
<p>Please let me know your suggestions. A million thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Gibeau</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-149</link>
		<dc:creator>Jeff Gibeau</dc:creator>
		<pubDate>Sun, 08 Nov 2009 14:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-149</guid>
		<description>@NarVish
Thanks for noting that error.  I&#039;ve updated the full source to reflect the snippet at the top.  get_Document has been replaced in my code by get_Application.  get_Document was leftover from my Word source code.</description>
		<content:encoded><![CDATA[<p>@NarVish<br />
Thanks for noting that error.  I&#8217;ve updated the full source to reflect the snippet at the top.  get_Document has been replaced in my code by get_Application.  get_Document was leftover from my Word source code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Gibeau</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-148</link>
		<dc:creator>Jeff Gibeau</dc:creator>
		<pubDate>Sun, 08 Nov 2009 14:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-148</guid>
		<description>@Agnes
See this post http://www.northatlantawebdesign.com/index.php/2009/07/21/automating-excel-2007-in-c-by-importing-the-excel-2007-type-library/
I&#039;ve taken the tlh file that is created from the Microsoft Excel #import and renamed it msexcel.h for simplicity and so that #import is not needed each time.</description>
		<content:encoded><![CDATA[<p>@Agnes<br />
See this post <a href="http://www.northatlantawebdesign.com/index.php/2009/07/21/automating-excel-2007-in-c-by-importing-the-excel-2007-type-library/" rel="nofollow">http://www.northatlantawebdesign.com/index.php/2009/07/21/automating-excel-2007-in-c-by-importing-the-excel-2007-type-library/</a><br />
I&#8217;ve taken the tlh file that is created from the Microsoft Excel #import and renamed it msexcel.h for simplicity and so that #import is not needed each time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agnes</title>
		<link>http://www.northatlantawebdesign.com/index.php/2009/07/15/access-microsoft-excel-2007-com-api-through-microsoft-active-accessibility/comment-page-1/#comment-124</link>
		<dc:creator>Agnes</dc:creator>
		<pubDate>Fri, 23 Oct 2009 06:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.northatlantawebdesign.com/?p=63#comment-124</guid>
		<description>Thanks for your post. I&#039;m getting the below compiler error.
fatal error C1083: Cannot open include file: &#039;msexcel.h&#039;: No such file or directory

How to include the msexcel header file.
Thanks alot in advance.</description>
		<content:encoded><![CDATA[<p>Thanks for your post. I&#8217;m getting the below compiler error.<br />
fatal error C1083: Cannot open include file: &#8216;msexcel.h&#8217;: No such file or directory</p>
<p>How to include the msexcel header file.<br />
Thanks alot in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

