// Create a new workbook Workbook workbook = new Workbook(); // ToJson&FromJson can be used in combination with spread.sheets product // Document Solutions for Excel import an excel file. // Change the path to real source file path. String source = "source.xlsx"; workbook.open(source); // Document Solutions for Excel export to a json string. String jsonstr = workbook.toJson(); // Use the json string to initialize spread.sheets product. // Spread.sheets will show the excel file contents. // Spread.sheets product export a json string. // Document Solutions for Excel use the json string to initialize. workbook.fromJson(jsonstr); // Document Solutions for Excel export workbook to an excel file. // Change the path to real export file path. String export = "export.xlsx"; workbook.save(export);