Print Page | Close Window

Save to XML

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=15728
Printed Date: 05 November 2025 at 2:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Save to XML
Posted By: madrianr
Subject: Save to XML
Date Posted: 26 November 2009 at 9:00am

Hello,

we build a command bar with 10 Bars by code where we add icons with the CommandBars.Icons.AddIcon method.

if we use t following code to save the layout as xml for using it in the designer all images are lost (not saved to file and the
images are also removed from the bars):
 
    Dim pxWrite As PropExchange
    Set pxWrite = CommandBars.GlobalSettings.CreatePropExchange
    Dim Options As StateOptions
    Set Options = CommandBars.CreateStateOptions
    Options.LoadSilent = True
    Options.SaveOnlyCustomized = False
    Options.SerializeControls = True
    Options.SerializeImages = True
    Options.SerializeLayout = True
    Options.SerializeOptions = True
    Options.SerializeDesignerControls = True
    Options.SaveOriginalControls = True

    pxWrite.CreateAsXML False, "DesignerFile"
    CommandBars.DoPropExchange pxWrite, Options
    pxWrite.SaveToFile "c:\temp\commandbar.xml"

whats going on here?

regards



Replies:
Posted By: Oleg
Date Posted: 27 November 2009 at 1:54am
Hi,
 
Just tried same code with our sample and don't see problem.
 
What version do you have installed ?


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


Posted By: madrianr
Date Posted: 27 November 2009 at 2:04am
13.2.1 Trail but I will search for another solution



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