当前位置: 动力学知识库 > 问答 > 编程问答 >

google apps script - How to Clear a Gdoc and write in the begining at the document

问题描述:

Hi I have a prob with my Scritp GAS.

I clear all my Google Doc but when I Write new DATA on my Google doc. my DATA is on the Second page.

Is there an other way for clear a Google Doc ?

function eraseContent(docId){

var doc = DocumentApp.openById(docId); doc.setText(" ");

}

regards

分享给朋友:
您可能感兴趣的文章:
随机阅读: