Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Save to XML
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Save to XML

 Post Reply Post Reply
Author
Message
madrianr View Drop Down
Groupie
Groupie


Joined: 25 February 2009
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote madrianr Quote  Post ReplyReply Direct Link To This Post Topic: Save to XML
    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
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: 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
Back to Top
madrianr View Drop Down
Groupie
Groupie


Joined: 25 February 2009
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote madrianr Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2009 at 2:04am
13.2.1 Trail but I will search for another solution
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.047 seconds.