If the file is not opening then the issue is likely that the ContentType & Header information is not being correctly set.
Try as follows;
Response.ContentType = "\".pdf\", \"application/pdf\"";
Response.AddHeader("Content-disposition", "attachment; filename=" + fileName);
Response.BinaryWrite(bytes);
Response.End();
Kind Regards