//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); Stream stream = GetResourceStream("xlsx\\TimelineSlicer.xlsx"); // Open the xlsx file that contains timeline slicer. workbook.Open(stream, OpenFileFormat.Xlsx); // Save to an excel file workbook.Save("TimelineSlicer.xlsx");
' Create a new Workbook Dim workbook As New Workbook Dim stream As Stream = GetResourceStream("xlsx\TimelineSlicer.xlsx") ' Open the xlsx file that contains timeline slicer. workbook.Open(stream, OpenFileFormat.Xlsx) ' save to an excel file workbook.Save("TimelineSlicer.xlsx")