Print Page | Close Window

Populate Dropdown control

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=1647
Printed Date: 16 Dec 25 at 7:01AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Populate Dropdown control
Posted By: jc21
Subject: Populate Dropdown control
Date 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!



Replies:
Posted By: Ingo
Date 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
 

 



Posted By: jc21
Date 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


Posted By: jc21
Date 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....



Posted By: Ingo
Date 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



Posted By: engstmalta
Date 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


Posted By: Ingo
Date 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




Posted By: Dimitry
Date 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



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