string filePath = "Passcode.htm"; Response.ContentType = "pdf"; Response.AddHeader("Content-Disposition", "attachment;filename=\"" + filePath + "\""); Response.TransmitFile(Server.MapPath(filePath)); Response.End();
DocumentModel.Load("Document.html").Save("Document.pdf");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)