Exemple #1
0
 protected string WriteHead()
 {
     try
     {
         int    indentLevel = 1;
         string indentStr   = GetIndentStr(indentLevel);
         string htmlStr     = "";
         htmlStr += "<head>\n";
         htmlStr += (indentStr + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n"); // declare it is a UTF-8 document>");
         htmlStr += (indentStr + string.Format("<title>{0}</title>\n", m_TextWork.GetTitle()));
         htmlStr += (indentStr + CSSStyle.BuildStyle());
         htmlStr += "</head>";
         return(htmlStr);
     }
     catch (Exception ex)
     {
         Globals.m_Logger.Error(ex.ToString());
         return("");
     }
 }