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.
Here is the code i tried
**Response.ClearHeaders()
Response.AppendHeader("Content-disposition", String.Format("attachment;filename={0}", "Report.pdf"))
Response.ContentType = "application/pdf"**
Thanks.