Foros del Web » Programando para Internet » ASPX (.net) »

Itextsharp modificar url boton

Estas en el tema de Itextsharp modificar url boton en el foro de ASPX (.net) en Foros del Web. Hellou. I am developing a program and have the following problem: I run the following code: const string BUTTON_NAME = "upload"; // existing button will ...
  #1 (permalink)  
Antiguo 17/03/2014, 10:27
 
Fecha de Ingreso: marzo-2014
Mensajes: 1
Antigüedad: 10 años, 1 mes
Puntos: 0
Itextsharp modificar url boton

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
  #2 (permalink)  
Antiguo 06/04/2014, 01:44
 
Fecha de Ingreso: noviembre-2002
Ubicación: DF
Mensajes: 1.056
Antigüedad: 21 años, 4 meses
Puntos: 37
Respuesta: Itextsharp modificar url boton

No he creado algo como lo que tu deseas, regularmente si deseo crear un PDF EDITABLE, uso IBM Lotus Simphony, es freeware, que me permite crear plantillas Word (*.ODT), desde alli uso "Exportar como PDF".

Despues, uso el PDF como plantilla a traves de "pdfReader" de ItextSharp y "acrofields" para llenar los datos.

Supongo que tambien los botones se pueden manipular de esa manera.

Etiquetas: boton, funcion, itextsharp, modificar, text, url
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:45.