Import google spreadsheet data to google doc app script -


i trying google app script import google spreadsheet data google doc. haven't found in checking api. possible import data doc? how?

 function createdocfromsheet(){   var ss = spreadsheetapp.getactivespreadsheet();   var sheet =  ss.setactivesheet(ss.getsheets()[2]);    var values = ss.getdatarange().getvalues() for(n=2;n<=values.length;++n){   var cell = sheet.getrange(n,3).getvalue();     var row = sheet.getrange(n,2,1,5).getvalues(); var newdoc = documentapp.create(cell);  var body = newdoc.getbody();   body.insertparagraph(0,row);  newdoc.saveandclose();  } } 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -