<?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 : Dynamic row add</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 : Dynamic row add]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 23:57:05 +0000</pubDate>
  <lastBuildDate>Sun, 15 May 2011 23:01:00 +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=1828</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[Dynamic row add : So you have to set up the initial...]]></title>
   <link>http://www.quickpdf.org/forum/dynamic-row-add_topic1828_post7890.html#7890</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1828<br /><strong>Posted:</strong> 15 May 11 at 11:01PM<br /><br />So you have to set up the initial page to be large enough<br>for 40 rows. <br>Your pagesize "letter" together with fontsize 8 can't work!<br>"Letter" doesn't mean the page of a letter but the envelope!<br>Perhaps 50 rows with fontsize 8 and pagesize "A4" could <br>be a success... Try a bigger pagesize and it will work.<br><br>Cheers, Ingo<br><br>]]>
   </description>
   <pubDate>Sun, 15 May 2011 23:01:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dynamic-row-add_topic1828_post7890.html#7890</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic row add : Hi, Overrun i mean as below. lets...]]></title>
   <link>http://www.quickpdf.org/forum/dynamic-row-add_topic1828_post7889.html#7889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1600">pdfinfo411</a><br /><strong>Subject:</strong> 1828<br /><strong>Posted:</strong> 15 May 11 at 10:51PM<br /><br />Hi, Overrun i mean as below. <br>lets say I have a structure of 200 rows of data. <br>&nbsp;I like to display lets say 40 rows of data in page 1 - now content of each row is one line.<br>also if the content of data increases to 8 lines per row, it display only first 20 rows and the remaining 21-40 will not be show. it will be cut off. Does not automatically display in next page.<br><br>I tried using appendtablerows, but did not help. <br>Is there a solution to this issue ?<br><br>Thanks<br><br>]]>
   </description>
   <pubDate>Sun, 15 May 2011 22:51:24 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dynamic-row-add_topic1828_post7889.html#7889</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic row add : Hi pdfinfo411!What do you mean...]]></title>
   <link>http://www.quickpdf.org/forum/dynamic-row-add_topic1828_post7888.html#7888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1828<br /><strong>Posted:</strong> 15 May 11 at 4:17PM<br /><br />Hi pdfinfo411!<br><br>What do you mean with data overrun?<br>The text per row was cut or what?<br>If this is the case you have to calculate by your own<br>before using a string.<br>What font height (pixel)? How many characters? ...<br>to determine before how long a row should be for the string?<br><br>Cheers and welcome here,<br>Ingo<br><br>BTW: I've deleted the other thread 'cause it's the same content ;-)<br><br>]]>
   </description>
   <pubDate>Sun, 15 May 2011 16:17:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dynamic-row-add_topic1828_post7888.html#7888</guid>
  </item> 
  <item>
   <title><![CDATA[Dynamic row add : Hi, I used the code on the below...]]></title>
   <link>http://www.quickpdf.org/forum/dynamic-row-add_topic1828_post7887.html#7887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1600">pdfinfo411</a><br /><strong>Subject:</strong> 1828<br /><strong>Posted:</strong> 14 May 11 at 10:23PM<br /><br />Hi, I used the code on the below lines to draw the table rows.<br>The issue is there will be data overruns. <br>so i use the api AppendTableRows(). This also does not seem to <br>help prevent data overruns.<br><br>Please advise.<br><br>&nbsp;QuickPDFAX0724.PDFLibraryClass qp base.Library();<br><br>&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int fontID = qp.AddTrueTypeFont("Arial", 1);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetTextSize(8);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SelectFont(fontID);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetHTMLNormalFont("Default", fontID);<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetPageSize("Letter");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetOrigin(0);<br>&nbsp; }<br><br>&nbsp; DataTable dtAllData = getTable(); //with 200 rows of data.<br>&nbsp;&nbsp; int ipages = qp.NewPages(20);<br>&nbsp;&nbsp; int totalPages = qp.PageCount();<br><br>&nbsp; int FirstRow = 1;<br>&nbsp; int FirstColumn = 1;<br>&nbsp; int LastRow = dtAllData.Rows.Count;<br>&nbsp; int LastColumn = dtAllData.Columns.Count;<br>&nbsp; int tableID = qp.CreateTable(LastRow, LastColumn);<br><br>&nbsp; qp.SetTableBorderColor(tableID, 0, 1, 1, 1);<br>&nbsp; qp.SetTableBorderWidth(tableID, 0, 0.1);<br><br><br>&nbsp; qp.SetTableCellTextSize(tableID, FirstRow, FirstColumn, LastRow, LastColumn, 8);<br><br>&nbsp;&nbsp; qp.SetTableCellBorderWidth(tableID, FirstRow, FirstColumn, LastRow, LastColumn, 0, 0);<br><br><br>&nbsp; qp.SetTableRowHeight(tableID, FirstRow, LastRow, 0);<br><br><br>&nbsp; QReport.RPTParam rptParam = new QReport.RPTParam();<br>&nbsp; for (int idx = 1; idx &lt;= LastColumn; ++idx)<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataColumn dcc = dtAllData.Columns&#091;idx - 1&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (dcc != null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Int32 iwidth = rptParam.GetColumnWidth(dcc);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetTableColumnWidth(tableID, idx, idx, iwidth);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LogMessage("Create(DataTable dtAllData,&nbsp; List&lt;DataRow&gt; lrow): using&nbsp; DefaultReportColumnWidth:" + QReport.RPTParam.DefaultReportColumnWidth.ToString());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetTableColumnWidth(tableID, idx, idx, QReport.RPTParam.DefaultReportColumnWidth);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp; }<br><br><br>&nbsp; qp.SetTableCellBackgroundColor(tableID, FirstRow, FirstColumn, FirstRow, LastColumn, 0.4, 0.4, 0.4);<br><br><br>&nbsp; qp.SetTableCellTextColor(tableID, FirstRow, FirstColumn, 1, LastColumn, 1, 1, 1);<br><br>&nbsp; qp.SetTableCellAlignment(tableID, FirstRow, FirstColumn, 1, LastColumn, 4);<br><br><br><br>&nbsp; for (int idx = 1; idx &lt;= LastColumn; ++idx)<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataColumn dcc = dtAllData.Columns&#091;idx - 1&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Int32 iAllignID = rptParam.GetDataAlignment(dcc);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetTableCellAlignment(tableID, 2, idx, LastRow, idx, iAllignID);<br>&nbsp; }<br>&nbsp; Func&lt;DataRow, DataColumn, String&gt; CDataType = delegate(DataRow drow, DataColumn dc)<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (drow&#091;dc&#093;.ToString().Trim().Length &gt; 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (dc.DataType == System.Type.GetType("System.DateTime"))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; return Convert.ToDateTime(drow&#091;dc&#093;).ToShortDateString();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; return Convert.ToString(drow&#091;dc&#093;).Trim();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return String.Empty;<br>&nbsp; };<br>&nbsp; for (int idxr = 1; idxr &lt;= LastRow; ++idxr)<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (idxr == 1) //column header<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int idx = 1; idx &lt;= dtAllData.Columns.Count; ++idx)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //foreach (DataColumn column in thisTable.Columns)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataColumn dcc = dtAllData.Columns&#091;idx - 1&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetTableCellContent(tableID, 1, idx, dcc.ColumnName);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //DataRow drow = lrow&#091;idxr - 1&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataRow drow = dtAllData.Rows&#091;idxr - 1&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int trow = qp.AppendTableRows(tableID, idxr);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LogMessage("QuickPDFRptTEST.PDFTest(): trow: " + trow.ToString());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (trow == 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new NotImplementedException("Rows could not be added");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (int idx = 1; idx &lt;= dtAllData.Columns.Count; ++idx)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataColumn dcol = dtAllData.Columns&#091;idx - 1&#093;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String rdata = CDataType(drow, dcol);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qp.SetTableCellContent(tableID, idxr, idx, rdata);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp; }<br>&nbsp; double totalheightofalltherows = qp.DrawTableRows(tableID, PDF_LEFT, PDF_TOP, PDF_HEIGHT, 1, 0);<br><br>&nbsp; qp.SaveToFile(outputfile);<br>]]>
   </description>
   <pubDate>Sat, 14 May 2011 22:23:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dynamic-row-add_topic1828_post7887.html#7887</guid>
  </item> 
 </channel>
</rss>