Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Signature
vb.net
vb.net
Public Property Ordering() As SortOptions.OrderingType
Example
Code Block
csharp
csharp
titleC#


          ExcelApplication xla = new ExcelApplication();
          Workbook wb = xla.Open("template.xlsx");
          wb[0].PivotTables[0].ColumnLabels[0].SortOptions.Ordering = SortOptions.OrderingType.Ascending;
        
Code Block
vbnet
vbnet
titlevb.net


          Dim xla As New ExcelApplication()
          Dim wb As Workbook = xla.Open("template.xlsx")
          wb[0].PivotTables[0].ColumnLabels[0].SortOptions.Ordering = SortOptions.OrderingType.Ascending;
        
Remarks

ExcelWriter does not have the ability to perform the actual sorting action. This is handled by Excel when the output is opened in Excel and the pivot table is refreshed. This property determines how Excel sorts the values for a particular field.