Hello All,

I have a blank PDF created on the server. I want to populate the fields in the 
PDF using iTextSharp. Also, there is a "Save" button in the PDF. I want to set 
the action on the Save Button  such as when the user clicks on Save in PDF, the 
PDF posts itself to an ASPX page. I am able to fill the fields from Database. 
But I am unable to set the action on the Save button. This is what I am trying 
to do..

Please help.

public void SetFormAction(string btnName, string url)
        {
            PushbuttonField newBtn = 
mFormFields.GetNewPushbuttonFromField(btnName);
            newBtn.Options = PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT;
            PdfFormField pff = newBtn.Field;
            pff.Action = PdfAction.CreateSubmitForm(url, null, 
PdfAction.SUBMIT_HTML_FORMAT);
            mFormFields.ReplacePushbuttonField(btnName, pff);
        }


Regards,
Taher


Regards,
Taher N Dhilawala
Sr. Software Engineer
taher.dhilaw...@inszoom.com<mailto:taher.dhilaw...@inszoom.com> | 
http://www.inszoom.com<http://www.inszoom.com/>

Visit www.migrantplanet.com<http://www.migrantplanet.com/> for updates on 
Global immigration
Follow us on:  [1299503485_linkedin] <http://www.linkedin.com/company/inszoom>  
  [1299504586_twitter] <http://twitter.com/inszoominc>    [1299503325_facebook] 
<http://www.facebook.com/pages/INSZoomcom-Inc-Immigration-Compliance-I-9-Compliance/140835225970887>

INSZoom.com, Inc. | Immigration and I-9 Compliance
An IS0 27001 & ISO 9001 company | San Ramon, CA | London, UK | Bangalore, India

Confidentiality Statement: The content of this message is INSZoom Confidential. 
It may contain privileged, confidential information, which is exempt from 
disclosure under applicable laws. If you are not the intended recipient, please 
note that you are strictly prohibited from disseminating or distributing this 
information (other than to the intended recipient) or copying this information. 
If you have received this communication in error, please notify us immediately 
by return email and delete this message from your computer system.

P   Please do not print this email until it is absolutely necessary. Spread 
environmental awareness

<<inline: image001.png>>

<<inline: image002.png>>

<<inline: image003.png>>

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to