Print Page | Close Window

List of form fields

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=1115
Printed Date: 12 Sep 25 at 9:11PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: List of form fields
Posted By: Maurizio
Subject: List of form fields
Date Posted: 18 Jun 09 at 11:35AM
Hi all,
which functions I must use in order to know titles of each form fields ?
There is an example ?
Thank you.
 
                     Maurizio



Replies:
Posted By: Ingo
Date Posted: 18 Jun 09 at 11:53AM
Hi Maurizio!

There's a special section in the online documentation having to do with formfields.
It's very easy ... perhaps you should read it ;-)

Here a small sample:

       QP.LoadFromFile(xFileName);
       ffc := QP.FormFieldCount;

       if ffc > 0 then
       begin

       for i := 1 to ffc do
           begin
              nffy  := QP.GetFormFieldType(i);
              nfft  := QP.GetFormFieldTitle(i);
              nffc  := QP.GetFormFieldCaption(i);
              nffv  := QP.GetFormFieldValue(i);
             
//            here you can do something with the values ...
              
           end; // for i := 1 to ffc do ...

      end; // if ffc > 0 then ...

Cheers, Ingo




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