I used code authored by jpadie that I found on this forum, but I can't find the thread again.
I took his code and made a function, and created a page to send a request to the function. It works, accept the spreadsheet that opens also has the HTML header and footer in it. All I want are the...