Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Programmatically set value of a form field

More
IP: 217.141.78.166 5 years 7 months ago #15412 by simone.p
I have a field:
Code:
myPage.AddFieldEditbox(rect, "fieldName", false, false);
How do I set a value for it programmatically?
More
IP: 111.196.242.169 5 years 7 months ago - 5 years 7 months ago #15415 by radaee
Code:
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();
Last edit: 5 years 7 months ago by radaee.
Time to create page: 0.421 seconds
Powered by Kunena Forum