WebRequest mywebReq ;
WebResponse mywebResp ;
StreamReader sr ;
StreamWriter sw;
mywebReq = WebRequest.Create("C:\\w.htm");
mywebResp = mywebReq.GetResponse();
sr =
strHTML = sr.ReadToEnd();
Response.ContentType = "application/pdf";
sw = File.CreateText(Server.MapPath("temp1.pdf"));
sw.Encoding.GetDecoder();
sw.BaseStream.CanSeek.ToString();
sw.WriteLine(strHTML);
sw.Close();
Response.WriteFile(Server.MapPath("temp1.pdf"));
Response.Write("Successfully Created");