//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); Stream fileStream = this.GetResourceStream("json\\FormatString.ssjson"); workbook.FromJson(fileStream); // Create a ssjson file stream FileStream outputStream = new FileStream("FormatString.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\FormatString.ssjson") workbook.FromJson(fileStream) ' Create a ssjson file stream Using outputStream = File.Create("FormatString.ssjson") workbook.ToJson(outputStream) End Using