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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Populate Dropdown control
  FAQ FAQ  Forum Search   Register Register  Login Login

Populate Dropdown control

 Post Reply Post Reply
Author
Message
jc21 View Drop Down
Beginner
Beginner


Joined: 17 Nov 10
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jc21 Quote  Post ReplyReply Direct Link To This Post Topic: Populate Dropdown control
    Posted: 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!
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
 

 

Back to Top
jc21 View Drop Down
Beginner
Beginner


Joined: 17 Nov 10
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jc21 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jc21 View Drop Down
Beginner
Beginner


Joined: 17 Nov 10
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jc21 Quote  Post ReplyReply Direct Link To This Post 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....

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
engstmalta View Drop Down
Beginner
Beginner


Joined: 24 Jan 11
Location: Malta
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote engstmalta Quote  Post ReplyReply Direct Link To This Post Posted: 24 Jan 11 at 11:23PM
Originally posted by jc21 jc21 wrote:

 
where is the official support page?  I need to be able to set the values of a choice field dynamically through code....
 
 
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! Cry
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
Dimitry View Drop Down
Team Player
Team Player


Joined: 18 Feb 10
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dimitry Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store