/// <summary> /// Appends the HTML. /// </summary> /// <param name="contentlist">The contentlist.</param> /// <param name="template">The template.</param> /// <returns>The filled template string</returns> private string AppendHtml(ContentCollection contentlist, string template) { try { HTMLContentBuilder htmlContentBuilder = new HTMLContentBuilder(); htmlContentBuilder.GraphicTargetFolder = this._imgFolder; string htmlBody = htmlContentBuilder.GetIContentCollectionAsHtml(this._document.Content); template += htmlBody; template += "</body>\n</html>"; template = this.SetMetaContent(template); return template; } catch(Exception) { throw; } }
/// <summary> /// Appends the HTML. /// </summary> /// <param name="contentlist">The contentlist.</param> /// <param name="template">The template.</param> /// <returns>The filled template string</returns> private string AppendHtml(IContentCollection contentlist, string template) { try { HTMLContentBuilder htmlContentBuilder = new HTMLContentBuilder(); htmlContentBuilder.GraphicTargetFolder = this._imgFolder; string htmlBody = htmlContentBuilder.GetIContentCollectionAsHtml(this._document.Content); template += htmlBody; // foreach(IContent content in contentlist) // if(content is IHtml) // template += this.ReplaceControlNodes(((IHtml)content).GetHtml()); template += "</body>\n</html>"; template = this.SetMetaContent(template); return template; } catch(Exception ex) { throw; } }