<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Microsoft Excel and Docking Panes - BUG!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Microsoft Excel and Docking Panes - BUG!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 21:03:39 +0000</pubDate>
  <lastBuildDate>Fri, 03 Feb 2006 14:24:27 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=3597</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Microsoft Excel and Docking Panes - BUG! :  You could always do this: Dim...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3597&amp;PID=10803&amp;title=microsoft-excel-and-docking-panes-bug#10803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 3597<br /><strong>Posted:</strong> 03 February 2006 at 2:24pm<br /><br />You could always do this:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Dim TempPane As XtremeDockingPane.Pane<br></pre></td></tr></table><br><br>to remove any ambiguity(sp?)<br>]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 14:24:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3597&amp;PID=10803&amp;title=microsoft-excel-and-docking-panes-bug#10803</guid>
  </item> 
  <item>
   <title><![CDATA[Microsoft Excel and Docking Panes - BUG! : I ran across this little bug recently,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3597&amp;PID=10802&amp;title=microsoft-excel-and-docking-panes-bug#10802</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1488">Milkman</a><br /><strong>Subject:</strong> 3597<br /><strong>Posted:</strong> 03 February 2006 at 2:18pm<br /><br />I ran across this little bug recently, while I was trying to incorporate a Microsoft Excel ActiveX automation server within my project.<br><br>If you declare a variable as a "Pane" object and you have the Microsoft Excel XX.0 Object Library as one of your References, you'll come across a nasty little run-time error 13.&nbsp; The example below causes the error.<br><br><table width="99%"><tr><td><pre class="BBcode"><span style="color: rgb(0, 102, 0);">'Docking pane declaration using Early-Binding (DOESN'T WORK)</span><br><span style="color: rgb(0, 0, 255);">Dim</span> TempPane <span style="color: rgb(0, 0, 255);">As</span> Pane<br><span style="color: rgb(0, 0, 255);">Set</span> TempPane = DockingPaneManager.CreatePane(ID_TEST, 50, 50, DockLeftOf, Nothing)<br></pre></td></tr></table><br><br>Why is the error caused?&nbsp; Quite simply because CodeJock decided to name their objects with rather standard names (i.e. "Pane").&nbsp; Microsoft Excel also has an object named "Pane".&nbsp; Thus when you are declaring the object in the first line, it declares as an Excel pane, and then the docking pane manager tries use that object as a CodeJock pane.<br><br>How do you get around this error??&nbsp; Use late-binding instead of early-binding.&nbsp; That means that you declare the variable as a standard object rather than a CodeJock "Pane" object.<br><br><table width="99%"><tr><td><pre class="BBcode"><span style="color: rgb(0, 102, 0);">'Docking pane declaration using Late-Binding</span><span style="color: rgb(0, 0, 255);"><br>Dim </span>TempPane <span style="color: rgb(0, 0, 255);">As</span> <span style="color: rgb(0, 0, 255);">Object</span><br><span style="color: rgb(0, 0, 255);">Set</span> TempPane = DockingPaneManager.CreatePane(ID_TEST, 50, 50, DockLeftOf, Nothing)<br></pre></td></tr></table><br><br>The downside of this is that you'll loose the intellisense feature that is so handy in VB; but, at least your code will work.<br><br>Something tells me that CodeJock won't be fixing this little problem anytime soon as it requires renaming their object, which will undoubtedly break any existing code.&nbsp; It's too bad that they didn't have the fore-thought to assign unique names to their objects.<br><br>If this post helped you out, please reply.&nbsp; <br><br>]]>
   </description>
   <pubDate>Fri, 03 Feb 2006 14:18:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3597&amp;PID=10802&amp;title=microsoft-excel-and-docking-panes-bug#10802</guid>
  </item> 
 </channel>
</rss>