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!
![]() |
Form field data not visible |
Post Reply ![]() |
Author | |
petefeyerherd ![]() Beginner ![]() Joined: 02 Nov 05 Location: Chicago Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 15 Dec 10 at 11:23PM |
Using QuickPDFAX0722
After reviewing several posts that recommended using SetNeedAppearances and UpdateAppearanceStream, still no visible form field data.
Used FlattenFormField, then the form field data was visible on the form
lngFieldCount = objPDFform.FormFieldCount()
For intField = 1 To lngFieldCount tmpFieldName = objPDFform.GetFormFieldTitle(intField) If txtFieldTitle = tmpFieldName Then ' lngReturn = objPDFform.SetNeedAppearances(1) lngReturn = objPDFform.SetFormFieldValue(intField, txtFieldValue) ' lngReturn = objPDFform.UpdateAppearanceStream(intField) lngReturn = objPDFform.FlattenFormField(intField) Exit For End If Next intField Should you have to use FlattenFormField to update the fields
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Pete!
Perhaps it's only unvisible? -> SetFormFieldVisible Cheers, Ingo |
|
![]() |
|
Dimitry ![]() Team Player ![]() Joined: 18 Feb 10 Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
Hi Pete,
Can you link us the problem PDF file?
|
|
Regards,
Dmitry |
|
![]() |
|
petefeyerherd ![]() Beginner ![]() Joined: 02 Nov 05 Location: Chicago Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
![]() |
|
Dimitry ![]() Team Player ![]() Joined: 18 Feb 10 Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
There are three kinds of PDF form documents: AcroForm, XFA and AcroForm/XFA.
This PDF is AcroForm/XFA.
It contains both AcroForms and XFA fileds, that means that they should be managed accordingly.
First we need to check the type of PDF forms:
if (FormFieldCount() <> 0) and (GetXFAFormFieldCount() <> 0) then
we have AcroForm/XFA;
else if FormFieldCount() <> 0 then
we have AcroForm;
else if GetXFAFormFieldCount() <> 0 then
we have XFA.
And after this we need to use AcroForm and XFA functions to change both field types.
Please check this Form fields function group to see what XFA management functions are provided by Quick PDF Library.
|
|
Regards,
Dmitry |
|
![]() |
|
petefeyerherd ![]() Beginner ![]() Joined: 02 Nov 05 Location: Chicago Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
So are you saying that I need to use both
SetXFAFormFieldValue and SetFormFieldValue to update the field or is there a function that indicates the field type?
Thanks.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
If GetXFAFormFieldCount() returns with a value > 0 you should use SetFXAFormFieldValue... If FormFieldCount() returns with a value > 0 you should use SetFormFieldValue... Cheers, Ingo |
|
![]() |
|
Dimitry ![]() Team Player ![]() Joined: 18 Feb 10 Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
And if both FormFieldCount() <> 0 and GetXFAFormFieldCount() <> 0 you should change values of both fields accordingly... Please see this KB article about XFA form fields for more information.
|
|
Regards,
Dmitry |
|
![]() |
|
edir ![]() Beginner ![]() Joined: 26 Jan 11 Location: Lecco - Italy Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I've got the same problem, i must complile a few fields then prin document, but the document printed have no field.... can you help me please?? GetXFAFormFieldCount() --> 1 FormFieldCount() --> 5 but GetXFAFormFieldName(1) --> "" I'm using a trial version to valutate if it's possible to buy for my work thank's in advance Edy Rossi PS: excuse me for my bad english ![]() |
|
![]() |
|
Dimitry ![]() Team Player ![]() Joined: 18 Feb 10 Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
Hi Edy,
The problem PDF sample would be great, as usually.
|
|
Regards,
Dmitry |
|
![]() |
|
quickpdf_learner ![]() Beginner ![]() Joined: 15 Oct 10 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
I have the exact problem, while I am using purchased 7.24 version. Please advise how to print out the forms with filled in fields. Thanks.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
Please read in the online-reference the parts regarding: SetNeedAppearances, UpdateAppearanceStream and FlattenFormField... http://www.quickpdflibrary.com/help/quickpdf/FormFields.php And try the formfield-part in the demo-app. http://www.quickpdflibrary.com/blog/2009/10/a-customizable-demo-for-quick-pdf-library/ Cheers, Ingo Edited by Ingo - 11 May 11 at 8:53PM |
|
![]() |
|
edir ![]() Beginner ![]() Joined: 26 Jan 11 Location: Lecco - Italy Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
wow fantastic... this is the way in VB6 (suppose that field name of PDF is "Text1"):
thank you very much Ingo
bye bye
Edy
|
|
![]() |
|
quickpdf_learner ![]() Beginner ![]() Joined: 15 Oct 10 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
After UpdateAppearanceStream and SetNeedAppearances were used, some textfields (not all) can be printed out. Very strange, for example, I have a form with accountholdername and address textfields, only address textfields data are printed out, while accountholdername textfield data is not. If FlattenFormField is used, the form can not be generated!
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
It will be anywhere in the mixed formfield bunch with XFA and normal fields together. You should upload your pdf anywhere and post the url ... then we can check if anybody wants. Cheers, Ingo Edited by Ingo - 12 May 11 at 10:02PM |
|
![]() |
|
edir ![]() Beginner ![]() Joined: 26 Jan 11 Location: Lecco - Italy Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
I confirm, field is compiled and stored on PDF but when i use print command field is not present on paper, but if i open pdf with acrobar reader there is all field compiled
|
|
![]() |
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