Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Bullet List in Table Cell

$
0
0
How do I add a bullet list to a Table Cell in a Document?  (Not using Pdf.Generator)

I tried this http://www.aspose.com/docs/display/pdfnet/Use+System+Defined+Bullets but it requires Pdf.Generator (and I thought that was deprecated?)

I'm using a Document to create a bunch of things.  One of which is a table that I need to add a bulleted list to.

I've tried this but I can't figure out how to style it like the rest of the PDF.

StringBuilder sbStrengthsHtml = new StringBuilder();
foreach (string strength in product.KeyStrengths)
{
	sbStrengthsHtml.AppendFormat("<li>{0}</li>", strength);
}
if (sbStrengthsHtml.Length > 0)
{
	sbStrengthsHtml.Insert(0, "<ul>");
	sbStrengthsHtml.Append("</ul>");
	keyCell.Paragraphs.Add(new HtmlFragment(sbStrengthsHtml.ToString()));
}



Viewing all articles
Browse latest Browse all 3131

Trending Articles