Print Page | Close Window

Possible Bug in DockingPane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=5194
Printed Date: 02 October 2024 at 7:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Possible Bug in DockingPane
Posted By: DDJJ
Subject: Possible Bug in DockingPane
Date Posted: 02 October 2006 at 4:21pm
In anticipation of a possible cahnge from VB6 to .NET, I'm going through our code and adding references to MS Word and Excel object models (I understand .NET does not like any objects established as "As Object").
 
I remember this happening previously, but didn't care since I was using late binding, but after adding the Word and Excel references, I'm getting a "type mismatch" error when I "Set aPane = ..." in the following:
 
With DockingPaneManager
        .SetCommandBars Me.cbMain
        Set aPane = .CreatePane(PANE_SHORTCUTBAR, _
            200, 120, DockLeftOf, vbNull)
End With
 
I've tried setting the Neighbor parameter to [empty], and Null, without any change.  The error seems to pop up regardless of what I do.
 
Anybody seen this before?
 
Dan



Replies:
Posted By: SuperMario
Date Posted: 02 October 2006 at 4:24pm
what is aPane declared as?  And in .NET you don't need the "Set" keyword


Posted By: DDJJ
Date Posted: 02 October 2006 at 4:32pm
Never mind.  I figured it out SuperMario (and you were right on point!).
 
Changed my references to "As XtremeDockingPane.Pane" instead of "As Pane".  Must be some reference to "Pane" in the Word object model.
 
Thanks!  ...and I guess I should also gor through any other cj references too!
 
Dan
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net