title: Asp.Net saving web page response as PDF
body: <p>I am trying to save asp.net webpage response as pdf,but what it happens when i tried to open the generated pdf file,,it shows adobe reader could not open the file because it is either not a supported file or because the file has been damaged.</p>
  
  <p>Here is the code i tried</p>
  
  <p>**Response.ClearHeaders()</p>
  
  <p>Response.AppendHeader("Content-disposition", String.Format("attachment;filename={0}", "Report.pdf"))</p>
  
  <p>Response.ContentType = "application/pdf"**</p>
  
  <p>Thanks.</p>