Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Type Mismatch error docking Pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Type Mismatch error docking Pane

 Post Reply Post Reply
Author
Message
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Topic: Type Mismatch error docking Pane
    Posted: 17 February 2006 at 1:51am

The following code will always yield an error stating "Type Mismatch":

Dim PaneNew As Pane

Set Pane = Me.DockingPaneManager.CreatePane(FNP_DOCK_PANE, 200, 200, DockLeftOf, Nothing)

If I change the data type of PaneNew to a variant I receive no error. It appears to me the code I'm using should work and does on a older copy of the same code.

Is there something about this code that should be producing this error?

Back to Top
kylechen View Drop Down
Groupie
Groupie


Joined: 29 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote kylechen Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2006 at 2:16am

Try

Dim PaneNew As XtremeDockingPane.Pane

Back to Top
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2006 at 9:05am

That did the trick, thanks! I realized later after fighting with it that the error started after I added the Excel 11 object library which also contains a Pane object. Even when selecting both Pane objects the error would occur until a explicit reference, which you suggested, corrected the problem.

Thanks!

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.