if (DropDownListDownloadCv0.Text == "DOC") { string sDirPath = Server.MapPath("~/PDF_WORD/Docs"); var ObjSearchDir = new DirectoryInfo(sDirPath); if (!ObjSearchDir.Exists) { ObjSearchDir.Create(); } string strFileName = HttpContext.Current.Server.MapPath("~/PDF_WORD/Docs/Cv." + "DOC" + ""); var file = new FileStream(strFileName, FileMode.OpenOrCreate, FileAccess.Write); var sw = new StreamWriter(file); sw.Write(Loggo.ImageUrl = theEmpl.logo); sw.Write(LabelFirstName.Text); sw.Write(LabelLastName.Text); sw.Close(); file.Close(); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)