<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Style Individual Table Cells</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Style Individual Table Cells]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 07 Mar 2026 08:11:07 +0000</pubDate>
  <lastBuildDate>Wed, 26 Jan 2022 08:46:55 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=3969</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Style Individual Table Cells : Hi Ingo (again)The SetHTMLBoldFont...]]></title>
   <link>http://www.quickpdf.org/forum/style-individual-table-cells_topic3969_post16018.html#16018</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3272">chris_adsi</a><br /><strong>Subject:</strong> 3969<br /><strong>Posted:</strong> 26 Jan 22 at 8:46AM<br /><br />Hi Ingo (again)<div><br></div><div>The SetHTMLBoldFont did the trick - just needed to make the table row a little larger in height for some reason for it to render OK but that may be the installed fonts.</div><div><br></div><div>Just got to work out how to do colspan and rowspan now!</div><div><br></div><div>Thanks</div>]]>
   </description>
   <pubDate>Wed, 26 Jan 2022 08:46:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/style-individual-table-cells_topic3969_post16018.html#16018</guid>
  </item> 
  <item>
   <title><![CDATA[Style Individual Table Cells : Hi IngoFunnily enough it was exactly...]]></title>
   <link>http://www.quickpdf.org/forum/style-individual-table-cells_topic3969_post16017.html#16017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3272">chris_adsi</a><br /><strong>Subject:</strong> 3969<br /><strong>Posted:</strong> 26 Jan 22 at 8:34AM<br /><br />Hi Ingo<div><br></div><div>Funnily enough it was exactly that first link where I started!</div><div><br></div><div>I hadn't seen that second one so wasn't familiar with the concept of the NormalFont BoldFont etc concept - that looks like it may well be what I need so will give it a try.&nbsp;</div><div><br></div><div>This is my code :</div><div><br></div><div><div>&nbsp; &nbsp; Set flds = FetchDocFields(lngType, lngSect, strUser, 1)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; lngFont = objPDF.AddTrueTypeFont(doc.FontName, 0)</div><div>&nbsp; &nbsp; lngRes = objPDF.SelectFont(lngFont)</div><div>&nbsp; &nbsp; 'set to default for the table</div><div>&nbsp; &nbsp; lngRes = objPDF.SetHTMLNormalFont("Default", lngFont)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 'how many rows?</div><div>&nbsp; &nbsp; For Each fld In flds</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If fld.FieldType = FieldType.Table Then 'table level settings</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; colms = fld.DrawOptions</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strBordColour = fld.BorderColour</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dblBordWidth = fld.BorderWidth</div><div>&nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If fld.FieldType = FieldType.TableRow Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rows = rows + 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; Next</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 'create the table skeleton</div><div>&nbsp; &nbsp; lngTable = objPDF.CreateTable(rows, colms)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 'Specify color and width of table borders</div><div>&nbsp; &nbsp; If strBordColour &lt;&gt; "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableBorderColor(lngTable, 0, GetColourRGB(strBordColour, 0), GetColourRGB(strBordColour, 1), GetColourRGB(strBordColour, 2))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableThinBorders(lngTable, 1, GetColourRGB(strBordColour, 0), GetColourRGB(strBordColour, 1), GetColourRGB(strBordColour, 2))</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; If dblBordWidth &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableBorderWidth(lngTable, 0, dblBordWidth)</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 'Specify table row height</div><div>&nbsp; &nbsp; lngRes = objPDF.SetTableRowHeight(lngTable, 1, rows, 0)</div><div><br></div><div>&nbsp; &nbsp; For Each fld In flds</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Select Case fld.FieldType</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case FieldType.TableRow</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'resest</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; row = row + 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColM = 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.Height &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Specify row height</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableRowHeight(lngTable, row, row, fld.Height)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Case FieldType.TableCell</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'render cell</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'width</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableColumnWidth(lngTable, ColM, ColM, fld.Width)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'alignment</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellAlignment(lngTable, 1, ColM, row, ColM, fld.Alignment)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Font Size</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.FontSize &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellTextSize(lngTable, row, ColM, row, ColM, fld.FontSize)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Border Colour</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.BorderColour &lt;&gt; "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellBorderColor(lngTable, row, ColM, row, ColM, 0, fld.BorderColourRGB(0), fld.BorderColourRGB(1), fld.BorderColourRGB(2))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'border width</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.BorderWidth &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellBorderWidth(lngTable, row, ColM, row, ColM, 0, fld.BorderWidth)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'background fill</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.BackgroundColour &lt;&gt; "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellBackgroundColor(lngTable, row, ColM, row, ColM, fld.BackgroundColourRGB(0), fld.BackgroundColourRGB(1), fld.BackgroundColourRGB(2))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'forecolour</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.Colour &lt;&gt; "" Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellTextColor(lngTable, row, ColM, row, ColM, fld.ColourRGB(0), fld.ColourRGB(1), fld.ColourRGB(2))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'padding</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.Padding &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellPadding(lngTable, row, ColM, row, ColM, 0, fld.Padding)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.PadLeft &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellPadding(lngTable, row, ColM, row, ColM, 1, fld.PadLeft)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.PadTop &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellPadding(lngTable, row, ColM, row, ColM, 2, fld.PadTop)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.PadRight &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellPadding(lngTable, row, ColM, row, ColM, 3, fld.PadRight)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If fld.PadBottom &gt; 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellPadding(lngTable, row, ColM, row, ColM, 4, fld.PadBottom)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'put the actual content in</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lngRes = objPDF.SetTableCellContent(lngTable, row, ColM, fld.FixedValue)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ColM = ColM + 1 'increment column counter</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; End Select</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Next</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 'Draw the table onto the document</div><div>&nbsp; &nbsp; lngRes = objPDF.DrawTableRows(lngTable, lngXPos, lngYPos, 400, 1, 0)</div></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 26 Jan 2022 08:34:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/style-individual-table-cells_topic3969_post16017.html#16017</guid>
  </item> 
  <item>
   <title><![CDATA[Style Individual Table Cells : Hi Chris,i don&amp;#039;t know what...]]></title>
   <link>http://www.quickpdf.org/forum/style-individual-table-cells_topic3969_post16016.html#16016</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3969<br /><strong>Posted:</strong> 25 Jan 22 at 10:48PM<br /><br />Hi Chris,<br><br><br>i don't know what you've read here in the forum and in the resources so far...<br>It would be good to see your code (a snippet with the table-syntax) to help.<br><br>Here's a thread with a good sample from Rowan:<br>http://www.quickpdf.org/forum/create-table-exactly-like-this-sample_topic1907.html<br><br>Here's a kb-article about how to insert a table into a pdf:<br>https://www.debenu.com/kb/insert-table-pdf/<br><br>Starting your search from here could give you many more results and help:<br>https://www.debenu.com/docs/pdf_library_reference/Search.php<br><br>]]>
   </description>
   <pubDate>Tue, 25 Jan 2022 22:48:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/style-individual-table-cells_topic3969_post16016.html#16016</guid>
  </item> 
  <item>
   <title><![CDATA[Style Individual Table Cells : HiI am drawing tables onto my...]]></title>
   <link>http://www.quickpdf.org/forum/style-individual-table-cells_topic3969_post16015.html#16015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3272">chris_adsi</a><br /><strong>Subject:</strong> 3969<br /><strong>Posted:</strong> 25 Jan 22 at 12:22PM<br /><br />Hi<div><br></div><div>I am drawing tables onto my document, and I am struggling to format individual table cells.</div><div><br></div><div>Ideally I want to make my header/ footers bold text. I have tried just using html bold tags but this does not seem to work with the selected font, which is Century Gothic. Elsewhere in my document when I was to render the font as bold I actually select Century Gothic Bold as the font.</div><div><br></div><div>I have tried putting some code in to select the font on a cell by cell basis but that only seems to format the entire table as bold, not individual cells.</div><div><br></div><div>With the default font (Arial?) the bold html tags do seem to work.</div><div><br></div><div>Any ideas how I can get formatting control with a specific font please?</div>]]>
   </description>
   <pubDate>Tue, 25 Jan 2022 12:22:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/style-individual-table-cells_topic3969_post16015.html#16015</guid>
  </item> 
 </channel>
</rss>