![]() |
CreateXML from ribbon |
Post Reply ![]() |
Author | |
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() Posted: 12 December 2008 at 1:59pm |
Hi,
i have been creating my ribbons from code but now i want to export them to XML and import them to the designer to manage them easily. I have tried CreateasXML but without much success. please help. TIA |
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
![]() |
|
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() |
am trying this code but it aint workin:
Dim pxWrite As PropExchange 'Save data to a binary file 'pxWrite.CreateAsBinaryFile False, "c:\file.out" 'ExchangeState pxWrite 'Save data to a xml file pxWrite.CreateAsXML False, "Settings" If pxWrite.Valid Then ExchangeState pxWrite pxWrite.SaveToFile "c:\ribbon.xml" End If |
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
try this
CommandBars.ActiveMenuBar.Customizable = True
Dim pxWrite As PropExchange Set pxWrite = CommandBars.GlobalSettings.CreatePropExchange Dim Options As StateOptions Set Options = CommandBars.CreateStateOptions Options.SaveOnlyCustomized = False Options.SerializeControls = True pxWrite.CreateAsXML False, "DesignerFile" CommandBars.DoPropExchange pxWrite, Options pxWrite.SaveToFile "c:\ribbon.xml" |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
joeliner ![]() Senior Member ![]() ![]() Joined: 09 June 2006 Status: Offline Points: 273 |
![]() ![]() ![]() ![]() ![]() |
thanks oleg.
|
|
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3 Language: Visual Basic 6 SP6 |
|
![]() |
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 |