title: Output table from database or stored procedure directly into Excel file
body: <p>I've seen a lot of posts and examples of how to output a gridview table into excel file but I am wondering how to bypass the gridview and directly turn a SQL query or stored procedure from a database into an Excel or Powerpoint output.</p>
  
  <p>This is needed because there are many (20+) reports that need to be output into one Excel (different sheets) or one PowerPoint file (different slides). I don't want to the webpage to cycle through each database report by first displaying it in gridview, then export it to Excel. The webpage setup will be a simple list of reports that the user can select and then click a button and have it come out in Excel and Ppt form.</p>
  
  <p>I'd like to do it without help from outside library if possible.</p>
  
  <p>I am using C# and ASP in Visual Studio 2015.</p>
  
  <p>Thank you.</p>