Print Page | Close Window

FormFieldDefaultValue

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=830
Printed Date: 22 Nov 24 at 7:56PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: FormFieldDefaultValue
Posted By: zaksoft
Subject: FormFieldDefaultValue
Date Posted: 05 Dec 07 at 4:19AM
I have a problem setting default value into a form with text and combo.
 
I can set all value using FormFieldvalue() (but then I have to call FlattenFormField() to show the data to user and he/she cannot change data interctively) or use a default value that seems the better choice.
 
But even if I set the value using FormFieldDefaultValue() when I open the pdf saved after setting value all fields are empty. Note that if I ask the content of default I get the value.
 
Is there something I've forgotten ?
 
I'm working under VC++ VS2005 not managed code using DLL as COM Object version 5.22.
 
Thanxs


-------------
Davide



Replies:
Posted By: Autodidact
Date Posted: 17 Dec 07 at 7:30AM
If I don't recall wrong, there are some similar "issues" when making form fields in Acrobat Reader also. (They stay empty..) As stated for the SetFormFieldDefaultValue function; This is the value which is shown when the reset button is pressed, if one is on.

I'm not aware of any related "reset function" in the library, so the only solution might be retrieving the default value and using it with the SetFormFieldValue function.

The only function that seem (remotely) "related" would be the SetNeedAppearances function, but I doubt it really is..



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