![]() |
Save to XML |
Post Reply ![]() |
Author | |
madrianr ![]() Groupie ![]() Joined: 25 February 2009 Status: Offline Points: 26 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
madrianr ![]() Groupie ![]() Joined: 25 February 2009 Status: Offline Points: 26 |
![]() ![]() ![]() ![]() ![]() |
13.2.1 Trail but I will search for another solution
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |