//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); // Change the path to the real file path when open. workbook.Open("source.sjs"); // Generate a JSON string containing the contents of .sjs file format. SjsSaveOptions saveOptions = new SjsSaveOptions(); string sjsJson = workbook.ToSjsJson(saveOptions); // Generates a workbook from the JSON string containing the contents of .sjs file format. SjsOpenOptions openOptions = new SjsOpenOptions(); workbook.FromSjsJson(sjsJson, openOptions);
' Create a new Workbook Dim workbook As New Workbook ' Change the path to the real file path when open. workbook.Open("source.sjs") ' Generate a JSON string containing the contents of .sjs file format. Dim saveOptions As New SjsSaveOptions() Dim sjsJson As String = workbook.ToSjsJson(saveOptions) ' Generates a workbook from the JSON string containing the contents of .sjs file format. Dim openOptions As New SjsOpenOptions() workbook.FromSjsJson(sjsJson, openOptions)