Hellou.
I am developing a program and have the following problem:
I run the following code:
const string BUTTON_NAME = "upload";
// existing button will be replaced with a new one
PushbuttonField bt = pdfFormFields.GetNewPushbuttonFromField(BUTTON_NAM E);
bt.Options = PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT;
bt.BorderWidth = 5;
bt.BackgroundColor = BaseColor.BLUE;
bt.Text = "HOLA";
//bt.Options = PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT;
PdfFormField pff1 = bt.Field;
// * set URL
// * submit form data as FDF
pff1.Action = PdfAction.CreateSubmitForm(URL, null, PdfAction.SUBMIT_PDF);
pdfFormFields.ReplacePushbuttonField(BUTTON_NAME, pff1);
This works with a button created with adobe 11 Pro, but does not work with Button livecycle created, the code only manages to change the background color but does not change the text or the url for sending
------------------------------------------
EN ESPAÑOL
Estoy desarrollando un programa y tengo el siguiente problema:
Ejecuto el siguiente codigo:
const string BUTTON_NAME = "upload";
// existing button will be replaced with a new one
PushbuttonField bt = pdfFormFields.GetNewPushbuttonFromField(BUTTON_NAM E);
bt.Options = PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT;
bt.BorderWidth = 5;
bt.BackgroundColor = BaseColor.BLUE;
bt.Text = "HOLA";
//bt.Options = PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT;
PdfFormField pff1 = bt.Field;
// * set URL
// * submit form data as FDF
pff1.Action = PdfAction.CreateSubmitForm(URL, null, PdfAction.SUBMIT_PDF);
pdfFormFields.ReplacePushbuttonField(BUTTON_NAME, pff1);
Este funciona con un boton, creado con adobe 11 Pro, pero no funciona con boton creado con livecycle, el codigo solo consigue cambiar el color de fondo pero no cambia el texto ni la url de envio de