我遇到了一个问题:在输出中我需要让xlsx以横向模式打印 将gheet转换为xlsx是正常的,但是,在打印时,它处于纵向模式。 portrait = false无效。有人面对这样的?
function t(id) {
var url = "https://docs.google.com/feeds/download/spreadsheets/Export?key=" + id + "&portrait=false&&exportFormat=xlsx";
var response = UrlFetchApp.fetch(url, { headers: { Authorization: "Bearer " + ScriptApp.getOAuthToken() }, muteHttpExceptions: true });
return DriveApp.createFile(response.getBlob()).setName("t.xlsx").getId();
}