GetIContentCollectionAsHtml() public method

Gets the I content collection as HTML.
public GetIContentCollectionAsHtml ( ContentCollection iContentCollection ) : string
iContentCollection ContentCollection The i content collection.
return string
		/// <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;
			}
		}
Ejemplo n.º 2
0
        /// <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;
            }
        }