Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Populate Dropdown control |
Post Reply
|
| Author | |
jc21
Beginner
Joined: 17 Nov 10 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Populate Dropdown controlPosted: 17 Nov 10 at 10:05PM |
|
How do I populate a dropdown control that is on the PDF?
Can't seem to find anything with regards to that....
please help!
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 10 at 10:57AM |
|
Hi JC21! Please have a look in the online reference at the SetFormField...-calls.
With the current version it's not possible to create Dropdown-elements.
These are the possible styles with NewFormField:
1 = Text
2 = Pushbutton 3 = Checkbox 4 = Radiobutton 5 = Choice 6 = Signature 7 = Parent Cheers and welcome here,
Ingo
|
|
![]() |
|
jc21
Beginner
Joined: 17 Nov 10 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 10 at 1:09PM |
|
doh! i could do everything that i needed...except for the dropdown.... thx for the info...i'll have to keep searching then
|
|
![]() |
|
jc21
Beginner
Joined: 17 Nov 10 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 10 at 1:28PM |
|
Ingo, in searching on the subject matter more...awhile back you posted on another thread
"You should try the official support pages for this.
Textcontent is very easy ... other formfields is heavy stuff!" where is the official support page? I need to be able to set the values of a choice field dynamically through code....
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Nov 10 at 5:29PM |
|
Mmmmmmmh?!
Take THIS domain: www.quickpdf.org There you'll find all main links. Take this: http://www.quickpdflibrary.com/ There you'll find the official support-pages. Cheers, Ingo |
|
![]() |
|
engstmalta
Beginner
Joined: 24 Jan 11 Location: Malta Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 Jan 11 at 11:23PM |
Hi, even we need to read and set values of a choice field/drop downl list. I older versions it used to work but unfortunatly it seems to be broken in the current version!
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 Jan 11 at 8:53PM |
|
Hi!
Here's a kb-article from Rowan how to read values from radiobuttons: http://help.quickpdflibrary.com/questions/350/get-data-from-radio-button-form-fields Try the knowledgebase of QuickPDF searching with "choice" and "radio button": http://help.quickpdflibrary.com/ Cheers, Ingo |
|
![]() |
|
Dimitry
Team Player
Joined: 18 Feb 10 Status: Offline Points: 37 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 Jan 11 at 12:32AM |
|
Quick PDF Library creates and manages form fields of Choice type,
so they can be properly rendered with other PDF viewers.
But there is known issue in Quick PDF that is connected with rendering Choice form fields.
It is already fixed and is going to be added to the nearest release.
Let me provide a code sample that may help to create and manage Choice form fields:
var
f: Integer; QPL: TQuickPDF;
begin // Create QPL instance here and may be load some PDF file...
with QPL do begin f := NewFormField('Choice1', 5); AddFormFieldSub(f, ' - one'); AddFormFieldSub(f, ' - two'); AddFormFieldSub(f, ' - three'); SetOrigin(1); SetFormFieldBounds(f, 50, 50, 150, 30); SetFormFieldBackgroundColor(f, 0.5, 1, 0.5); // Here subitem with subindex=2 is selected
SetFormFieldValue(f, GetFormFieldSubName(f, 2)); UpdateAppearanceStream(f); end; end;
|
|
|
Regards,
Dmitry |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store