Print Page | Close Window

CreateXML from ribbon

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=12909
Printed Date: 17 June 2025 at 10:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CreateXML from ribbon
Posted By: joeliner
Subject: CreateXML from ribbon
Date 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



Replies:
Posted By: joeliner
Date Posted: 12 December 2008 at 2:20pm
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


Posted By: Oleg
Date Posted: 13 December 2008 at 8:24am
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


Posted By: joeliner
Date Posted: 13 December 2008 at 4:11pm
thanks oleg.



-------------
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6



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