Print Page | Close Window

Boolean Values

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=797
Printed Date: 09 May 24 at 6:21AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Boolean Values
Posted By: unified
Subject: Boolean Values
Date Posted: 02 Oct 07 at 3:48AM
How can I set the form field's value if it is a checkbox?
 
I am loading values from an access database and the field values in the Access table are boolean.
 
Calling

QP.SetFormFieldValueByTitle("Error_Correction." + RecNo.ToString, ds_Binding.Tables(0).Rows(RecNo).Item("Error_Correction").ToString)

or
 

QP.SetFormFieldValueByTitle("Error_Correction." + RecNo.ToString, ds_Binding.Tables(0).Rows(RecNo).Item("Error_Correction"))

The checkbox does not appear in the form field if the Error_Correction field value of the Access table is set to "True" nor if it is set to "Yes"
 
I am using VB.Net 2005.  Everything else works fine.  I have no problems with text or date fields.
 
Thanks in advance for your assistance.



Replies:
Posted By: unified
Date Posted: 02 Oct 07 at 4:08AM
Solved.
 
The export value of the checkbox field on the form should be set to "True" rather than "Yes" in order for this to work.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk