I am trying to create a script in Google Sheets that select a range and print it. I am trying to print some information based on some parameters. I have the following script
I stumbled on your code quite by chance from an "unallowed question to stack overflow which actually seems to be exactly what I want - could not get any detail on how to print from App Script for sheets.
I have been trying it out but it falls over at the line in your sample "var htmlTemplate = HtmlService.createTemplateFromFile('js');" where the service cannot find 'js'. Afraid I do not understand what an html template is anyway - are you able to explain?