function main(spreadsheetReport) {
var sheet = spreadsheetReport.sheets[0];
var posList = sheet.getExpandedPositions("F4"); //获取C3单元格字段扩展出来的所有单元格
var posList1 = sheet.getExpandedPositions("G4"); //获取B3 单元格扩展出来的所有单元格
var customProperties = spreadsheetReport.customProperties;
var arr1 = new Array();
var arr2 = new Array();
for (var i = 0; i < posList.length; i++) { //将C3单元格字段扩展出来的所有数据添加到属性customProperties中
var value = sheet.getCellValue(posList[i]); //把C3扩展出来的所有单元格的值加入到arr1中
arr1.push(value);
var value1 = sheet.getCellValue(posList1[i]); //把B3扩展出来的所有单元格的值加入到arr2中
arr2.push(value1);
}
customProperties.put("F4", arr1); //把值C3和C3单元格扩展出的所有数据添加到customProperties中
customProperties.put("G4", arr2); //把值B3和B3单元格扩展出的所有数据添加到customProperties中
}