Move (Method)

Applies To:

Groupitems object, ReportGroup object, TableFacts object

Description:

Moves an object in the ReportGroup collection. For example, use this method to reverse the order of items in the Facts pane of the Table Outliner.

Syntax:

Expression.Move(LabelNameBefore as String)

Expression Required:

An expression that returns an object for the following:

Example:

This example shows how to place the object Unit Sales before Amount Sales in the TableFacts collection:

//State is Report Group 1, City is Report Group2.  
//This script should move City on top of State.
//Description:  void Move(String LabelNameBefore)
try
  {
ActiveDocument.Sections["Report"].Groups["Report Group2"].Move("Report Group1")
  }
catch(e)
  {
    Console.Writeln(e.toString())
  }