Description
Loads the RibbonBar content from an XML string. XML version 1.0 is supported.
Applies to
Syntax
controlname.ImportXML ( Data )
| 
                                            
                               Argument  | 
                           
                                            
                               Description  | 
                        
|---|---|
| 
                                            
                               controlname  | 
                           
                                            
                               The name of the RibbonBar control.  | 
                        
| 
                                            
                               Data  | 
                           
                                            
                               An XML string that contains the RibbonBar content.  | 
                        
Return value
Integer.
1 - Successful.
-1 - An internal error occurs.
-2 - The library fails to load.
-5 - Any of the following: 1) XML syntax error; 2) XML encode error; 3) XML data is null.
If any argument's value is null, returns null.
Examples
This example loads an XML string to create the ribbon bar:
Integer li_return
string ls_xml
ls_xml = '<?xml version="1.0" encoding="utf-8" standalone="yes"?>&
   <RibbonBar Font="FaceName:Tahoma; TextSize:8" BuiltinTheme="0">&
     <RibbonItems>&
      <Categories>&
       <Category Text="MyCategory" Enabled="true" Visible="true">&
        <Panel Text="MyPanel" Enabled="true" Visible="true" PictureName="TabsSmall!">&
         <SmallButton Text="MySmallButton" Clicked="ue_ButtonClicked" PictureName="EmployeeSmall!"/>&
        </Panel>&
       </Category>&
      </Categories>&
     </RibbonItems>&
   </RibbonBar>'
li_return = rbb_1.ImportXML(ls_xml)
See also


