Code to Import and Export Expressions

This section describes how to import and export groups of expressions. An import file must contain the XML expression recordset schema followed by the XML representation of each expression recordset to be imported. The format of the exported file is the same. For information about expression structures in XML, see Expression XML Structures.

  1. Using the ExpressionStore object, oExpressionStore, created in Code to Connect to the Expression Store, import the expressions from the file Expressions.xml into the Expression Store. If the Expression Store is not empty, the method will fail.

    oExpressionStore.Import "Expressions.xml"
    
  2. Export the expressions contained in the Expression Store to the file Exported_Expressions.xml.

    oExpressionStore.Export "Exported_Expressions.xml"
    


All rights reserved.