Added generateHtmlAndWriteToResponse()
- Factored out common code for opening report file
I think you should only need the View privilege to get reports