on 07-30-2008 1:51 PM
Hi,
I want to include password /lock concept means when user run the program the pdf should be downloaded with password. so that only the person who runs the report can able to see the output using the password
Hi Anurodh,
Just do the following:
1. Put all the subforms in a single subform your pdf form.
2. Create another subform to get password from user. On it create a password field and a button.
3. Now suppose in your pdf the main subform let 'A' contains subforms A1, A2, A3. A3 is password form.
4. Then write the following code in the form:ready event of the A:
$.A1.presence = "hidden"
$.A2.presence = "hidden"
5. Write the following code in the click event of the button on the subform for password i.e. A3.
if( PasswordField1.rawValue == "password" )
then
A.A1.presence = "visible"
A.A2.presence = "visible"
$.parent.presence = "hidden"
else
$host.messageBox("Wrong Password!!!!!")
endif
Hope it will help to create a password protected pdf form.
Regards,
Vaibhav Tiwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.