Print Page | Close Window

LoadDesignerBars not work

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12739
Printed Date: 07 October 2024 at 10:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadDesignerBars not work
Posted By: maza23
Subject: LoadDesignerBars not work
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: maza23
Date Posted: 20 November 2008 at 8:33am
Xtreme SuitePro ActiveX 2008 Vol 1 (12.1.0) (30 Day Trial)


Posted By: maza23
Date 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? 


Posted By: SuperMario
Date 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.


Posted By: maza23
Date 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


Posted By: Oleg
Date Posted: 20 November 2008 at 9:20am

Hello,

Can you attach this xcb file ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Oleg
Date 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


Posted By: maza23
Date Posted: 20 November 2008 at 4:19pm
It works!
Thank you very much!



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