Package com.aspose.words

Examples of com.aspose.words.FormField


      // "DOMINIQUE", true, true);
      // System.out.printf("%s items replaced !\n", count);
      /* Replace text fields */
      FormFields formFields = wordDoc.getRange().getFormFields();
      for (int i = 0; i < formFields.getCount(); i++) {
        FormField formField = formFields.get(i);
        String value = "VALUE_" + Integer.toString(i);
        System.out.printf("Processing FormFiled['%s'] to ['%s']\n",
            formField.getName(), value);
        int count = formField.getDocument().getRange().replace(
            formField.getName(), value, true, true);
        System.out.printf("%s items replaced !\n", count);
      }

      System.out.printf("Document modified in %s ms\n", (System
          .currentTimeMillis() - start));
View Full Code Here

TOP

Related Classes of com.aspose.words.FormField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.