Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Programmatically set value of a form field 3 years 2 months ago #15412

  • simone.p
  • simone.p's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
I have a field:
myPage.AddFieldEditbox(rect, "fieldName", false, false);
How do I set a value for it programmatically?
You do not have permissions to access this page.
Attachments:

Please Log in or Create an account to join the conversation.

Programmatically set value of a form field 3 years 2 months ago #15415

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
myPage.ObjsStart();
myPage.AddFieldEditbox(rect, "fieldName", false, false);
int index = myPage.GetAnnotCount() - 1;
Annotation annot = myPage.GetAnnot(index);
annot.SetEditText("your text");
//render page again, if you need render page out.
myPage.Close();
The following user(s) said Thank You: simone.p

Please Log in or Create an account to join the conversation.

Last edit: by radaee.
  • Page:
  • 1
Powered by Kunena Forum