简体   繁体   中英

How to pop up print window via script in Google Sheets

i have a script that selects a range when i click on a button

function selectRange() {
   SpreadsheetApp.getActive().getSheetByName('SheetName').getRange("Range").activate()
  }

Now i'm looking is there somehow to pop up Google Sheets print window via script without clicking on print icon after the the script above is ran

It's not possible because Google Apps Script doesn't include methods to do such thing.

There are available two classes, Browser and Ui, that have effects on the Google Sheets user interface but either of them includes a method to open the Google Sheets print dialog.

Related

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM