Print Page | Close Window

Checkboxes - can't set default value, check state

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=2627
Printed Date: 09 Jun 26 at 2:23PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Checkboxes - can't set default value, check state
Posted By: KAP
Subject: Checkboxes - can't set default value, check state
Date Posted: 30 Apr 13 at 11:23AM

Hi,

  I am generating a report in pdf with QuickPDF Library and I am trying to add some checkboxes to the report. I can add a checkbox but I can't set it's default value (some checkboxes should be checked when the report is opened). I would also like to use a cross instead of a tick but it ignores anything I put in QP.SetFormFieldCheckStyle parameters.

  Here is the code I am using (in vb.net):

Dim fieldName As String = "chk_1000"
Dim fieldIndex As Integer = QP.NewFormField(fieldName, 3)
QP.SetFormFieldValueByTitle(fieldName, "Yes")
QP.SetFormFieldBounds( fieldIndex , 100, 100, 18, 18)
QP.SetFormFieldCheckStyle( fieldIndex , 0, 1)
QP.SetFormFieldBorderColor( fieldIndex , 1, 0, 0)
QP.SetNeedAppearances(1)

  Strange is that QP.SetFormFieldBorderColor is working and the border is red.

  Any help would be appreciated.




Replies:
Posted By: KAP
Date Posted: 01 May 13 at 7:45AM
The problem was solved by using version 9.14.



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