//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); Stream fileStream = this.GetResourceStream("json\\PivotTableViews.json"); workbook.FromJson(fileStream); // Create a ssjson file stream FileStream outputStream = new FileStream("PivotTableViews.ssjson", FileMode.Create); workbook.ToJson(outputStream); // Close the ssjson stream outputStream.Close();
' Create a new Workbook Dim workbook As New Workbook Dim fileStream As Stream = GetResourceStream("json\PivotTableViews.json") workbook.FromJson(fileStream) ' Create a ssjson file stream Using outputStream = File.Create("PivotTableViews.ssjson") workbook.ToJson(outputStream) End Using