Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - LoadDesignerBars not work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LoadDesignerBars not work

 Post Reply Post Reply
Author
Message
maza23 View Drop Down
Newbie
Newbie


Joined: 18 November 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote maza23 Quote  Post ReplyReply Direct Link To This Post Topic: LoadDesignerBars not work
    Posted: 20 November 2008 at 8:16am
Hi, I'm getting an exception when I try to call the LoadDesignerBars function:
CommandBars1.LoadDesignerBars "xxx\ribbon.xcb"
I'm using the lastest version of CommandBars (12.1), in a previous version I had no problems when I called it
What should I do?

Thx
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 8:30am

Hi.

Do you have 12.1 beta or final release ? Beta had this problem.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
maza23 View Drop Down
Newbie
Newbie


Joined: 18 November 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote maza23 Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 8:33am
Xtreme SuitePro ActiveX 2008 Vol 1 (12.1.0) (30 Day Trial)
Back to Top
maza23 View Drop Down
Newbie
Newbie


Joined: 18 November 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote maza23 Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 8:39am
On VB.NET when I call this form, it says me:
Overload resolution failed because no accessible 'LoadDesignerBars' accepts this number of arguments.
What should I pass as 2nd argument? 
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 8:50am
Hi,
Just create new application, add commandbars, add

AxCommandBars1.LoadDesignerBars("C:\visio.xcb", Nothing)

line and it works.
Back to Top
maza23 View Drop Down
Newbie
Newbie


Joined: 18 November 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote maza23 Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 9:04am
I did that and...
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
It throws that exception
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 9:20am

Hello,

Can you attach this xcb file ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 11:55am
Hi,
 
Please as workaround add
 
CommandBars1.VisualTheme = xtpThemeRibbon
CommandBars1.DeleteAll
before you load designer bar.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
maza23 View Drop Down
Newbie
Newbie


Joined: 18 November 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote maza23 Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2008 at 4:19pm
It works!
Thank you very much!
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.172 seconds.