Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (FileStream fs = new FileStream("test.htm", FileMode.Create))
- {
- using (StreamWriter w = new StreamWriter(fs, Encoding.UTF8))
- {
- w.WriteLine("<head>");
- w.WriteLine("<title>" + conversion.getSubjectField() + " " + folderName + " - Converted by Something by VIALUTIONS</title>");
- w.WriteLine("<style type=\"text/css\">");
- w.WriteLine(".contentType { padding:1em; font-family: Segoe UI Light; font-size: 14pt; }");
- w.WriteLine(".content { font-family: Segoe UI; font-size: 12pt;");
- w.WriteLine("</style>");
- //From:
- w.WriteLine("<div><span class=\"contentType\">From:</span>");
- w.WriteLine("<span class=\"content\">" + conversion.getFromField() + "</span>");
- //To:
- w.WriteLine("<div><span class=\"contentType\">To:</span>");
- w.WriteLine("<span class=\"content\">" + conversion.getToField() + "</span>");
- //Subject:
- w.WriteLine("<div><span class=\"contentType\">Subject:</span>");
- w.WriteLine("<span class=\"content\">" + conversion.getSubjectField() + "</span>");
Add Comment
Please, Sign In to add comment