Response.Buffer = true; Response.Clear(); //Response.Charset = "Unicode"; Response.ContentType = mimeType; Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment; filename=" + "invoice.pdf"); Response.BinaryWrite(bytes); // create the file Response.Flush();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)