Print Page | Close Window

Reading Checkbox and HTMLTextBox data

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=291
Printed Date: 10 May 24 at 8:57PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Reading Checkbox and HTMLTextBox data
Posted By: Kapil
Subject: Reading Checkbox and HTMLTextBox data
Date Posted: 30 Jan 06 at 6:48AM

hi guyz,

How can i read values or state of a checkbox/ComboBox and

HTMLTextBox. Plz give some example...

PLz.. Help Me!!!

Regards,

Kapil




Replies:
Posted By: shelby
Date Posted: 30 Jan 06 at 9:51AM
I am still working on the HTML Text Box.  Did you mean a text form field?  If so, the GetFormFieldValue  would return the text.  ( SEE ALSO GetFormFieldValueByTitle
 
 
$QP = ObjCreate("iSED.QuickPDF")   
$QP.UnlockKey("---- YOUR KEY ----")
$QP.Loadfromfile("fieldtest.pdf")
 
; value "Yes" means checked
; value "Off" means not-checked.
 
for $i = 1 to $qp.FormFieldCOunt()
 message($qp.GetFormFieldValue($i))
Next
; OR -----
message($qp.GetFormFieldValuebytitle("CheckBox1"))
message($qp.GetFormFieldValuebytitle("CheckBox2"))


-------------
To Err is to try. To fail is to err and not try again


Posted By: Kapil
Date Posted: 31 Jan 06 at 12:01AM

Thanks Shelby,

I really helped, i just didn't knew these values like "Yes", "Off"..

If there r some more values like this plz lt me know.

I cannot select radio button state to be true by default. Is there any other keyword for seting it..?

Best Regards

Kapil..



Posted By: shelby
Date Posted: 31 Jan 06 at 9:15AM
When you build or load the form
 
$QP.SetFormFieldValue(2,"Yes")
 
OR ( The safest approach as indexes are not necessarily in order on the page )

$QP.SetFormFieldValuebytitle("CheckBox2","Yes")


-------------
To Err is to try. To fail is to err and not try again



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