Doc theDoc = new Doc(); theDoc.AddImageUrl("http://www.example.com"); byte[] theData = theDoc.GetData(); Response.Clear(); Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "inline; filename=MyPDF.PDF"); Response.AddHeader("content-length", theData.Length.ToString()); Response.BinaryWrite(theData); Response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)