<?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 : Setting check box subfield values</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 : Setting check box subfield values]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Jul 2026 14:37:55 +0000</pubDate>
  <lastBuildDate>Wed, 06 Jul 2011 19:36:19 +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=1842</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[Setting check box subfield values : Cheers Andrew,  That is very...]]></title>
   <link>http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post8065.html#8065</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1610">Revolution1200</a><br /><strong>Subject:</strong> 1842<br /><strong>Posted:</strong> 06 Jul 11 at 7:36PM<br /><br />Cheers Andrew,<DIV>&nbsp;</DIV><DIV>That is very similar to what I ended up doing!</DIV>]]>
   </description>
   <pubDate>Wed, 06 Jul 2011 19:36:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post8065.html#8065</guid>
  </item> 
  <item>
   <title><![CDATA[Setting check box subfield values : Here is some code I use to display...]]></title>
   <link>http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post8050.html#8050</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 1842<br /><strong>Posted:</strong> 01 Jul 11 at 2:50PM<br /><br />Here is some code I use to display the possible sub field values required for setting check box and radio boxes.<div><br></div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 1; i &lt;= QP.FormFieldCount(); i++)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string title = QP.GetFormFieldTitle(i);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string hint = QP.GetFormFieldDescription(i);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string s = QP.GetFormFieldValue(i);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int type = QP.GetFormFieldType(i);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (type == 3 || type == 4) &nbsp;// Radio or CheckBox</div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int sc = QP.GetFormFieldSubCount(i);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int j = 1; j &lt;= sc; j++)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string sfn = QP.GetFormFieldSubName(i, j);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox1.AppendText(sfn);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (j != sc)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; textBox1.AppendText("|");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 01 Jul 2011 14:50:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post8050.html#8050</guid>
  </item> 
  <item>
   <title><![CDATA[Setting check box subfield values : Hi Rowan,  Thanks for your reply,...]]></title>
   <link>http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post7971.html#7971</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1610">Revolution1200</a><br /><strong>Subject:</strong> 1842<br /><strong>Posted:</strong> 06 Jun 11 at 4:51PM<br /><br />Hi Rowan,<DIV>&nbsp;</DIV><DIV>Thanks for your reply, was pulled of the project for a week or so and this is the first chance I have had to get back to it!!</DIV><DIV>&nbsp;</DIV><DIV>Finally found out that the sub field names are in actual fact the values I need to send to turn then checkbox on - for instance under the question for Sex, there are 2 sub fields Male and Female, to check the Male check, I use PDFLibrary.SetFormFieldValue PDFLibrary.FindFormFieldByTitle("partc q5"), "male"</DIV><DIV>&nbsp;</DIV><DIV>Slightly confusing but got there in the end!!</DIV><DIV>&nbsp;</DIV><DIV>Cheers </DIV><DIV>&nbsp;</DIV><DIV>Stuart</DIV>]]>
   </description>
   <pubDate>Mon, 06 Jun 2011 16:51:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post7971.html#7971</guid>
  </item> 
  <item>
   <title><![CDATA[Setting check box subfield values : Hi Stuart,Can you try using &amp;#034;Yes&amp;#034;...]]></title>
   <link>http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post7945.html#7945</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1842<br /><strong>Posted:</strong> 27 May 11 at 12:20PM<br /><br />Hi Stuart,<div><br></div><div>Can you try using "Yes" with SetFormFieldValue instead of "On"?</div><div><br></div><div>PDFLibrary.SetFormFieldValue(subFieldIndex, "Yes")</div><div><br></div><div>I did a quick test and Yes works for me but On does not.</div><div><br></div><div>Cheers,</div><div>- Rowan.</div>]]>
   </description>
   <pubDate>Fri, 27 May 2011 12:20:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post7945.html#7945</guid>
  </item> 
  <item>
   <title><![CDATA[Setting check box subfield values : Hi Folks,I am currently reviewing...]]></title>
   <link>http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post7944.html#7944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1610">Revolution1200</a><br /><strong>Subject:</strong> 1842<br /><strong>Posted:</strong> 26 May 11 at 10:25PM<br /><br />Hi Folks,<br><br>I am currently reviewing QuickPDF for our company, we are looking to automatically fill in H&amp;S forms.<br><br>For some reason I am unable to set the value of any of the check boxes on the form.<br><br>I have been using the following code to confirm the subfields within VB6<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For loopcounter = 1 To PDFLibrary.FormFieldCount<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; currentFieldName = PDFLibrary.GetFormFieldTitle(loopcounter)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If PDFLibrary.GetFormFieldType(loopcounter) = 4 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If PDFLibrary.GetFormFieldKidCount(loopcounter) &gt; 1 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print PDFLibrary.GetFormFieldKidCount(loopcounter)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For subCounter = 2 To PDFLibrary.GetFormFieldKidCount(loopcounter) + 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; subFieldIndex = PDFLibrary.GetFormFieldSubTempIndex(loopcounter, subCounter)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; subFieldName = PDFLibrary.GetFormFieldSubName(loopcounter, subCounter)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDFLibrary.SetFormFieldValue(subFieldIndex, "On"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&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;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<br><br>I get a valid sub field index, and I can use this to verify that the subfield default value is "Off", I can also use the index to confirm that the subfield is of type 4 for a check box, however when I use the same value to try and set the field using <br><br>PDFLibrary.SetFormFieldValue(subFieldIndex, "On") <br><br>I get a return value of 0 which seems to mean the library cannot find the field specified?<br><br>Is anyone able to share some code where this works?<br><br>Kind Regards<br><br>Stuart<br>]]>
   </description>
   <pubDate>Thu, 26 May 2011 22:25:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setting-check-box-subfield-values_topic1842_post7944.html#7944</guid>
  </item> 
 </channel>
</rss>