// Create a new workbook Workbook workbook = new Workbook(); // Open a ReportSheet SJS file. workbook.open(getResourcePath("sjs/ReportSheet.sjs")); // Save to a .sjs file workbook.save("ReportSheet.sjs");