This is a sample script for downloading the active sheet in Google Spreadsheet to the local PC as a CSV file and a PDF file when a button on the side bar and the dialog is clicked. This is created with Google Apps Script and HTML&Javascript. In this post, the script of the previous post was modified.
Please create new Google Spreadsheet and copy and paste the following scripts to the script editor. And please run openSidebar()
. By this, the side bar is opened to the Spreadsheet.