Announcement

Collapse
No announcement yet.

How can i increase number in textbox after print?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    htqonline

    Thank you for your explanation. It seems that your document has only one page, maybe it can contain two fields, you can input the copy number 200 in one field, and in the other field, it will show the serial number from 1 to 200,is that right? And it seems that the second field is similar with your first request.

    If not, maybe you can send us the sample file in question, then we can better advice. Thanks,


    Comment


    • #17
      I understood.
      This requires a JavaScript which increments the field 200 times and send the file 200 times to the printer.

      Is it something to do with only one document or with several?
      If several, is the "counter" field already placed in the document?

      Please share you document or a sample.

      Comment


      • #18
        htqonline
        That would be better to have a sample file for further investigating.

        Comment


        • #19
          Thank you everyone for helped. i added a sample file.

          Attached Files

          Comment


          • #20
            @JBR : its only 1 page
            Like JBR said i just send to printer 1 time and the printer will print 200 pages. On each page the serial number will be plus 1 (+1)
            Last edited by htqonline; 12-03-2021, 12:51 PM.

            Comment


            • #21
              This script works fine but it must be used from the Console or from an application level script (for security reasons) if you don't want to click OK for each printing.
              Try it in the attachment.

              nPrint = 10; // number of pages to print
              nPrint +=1;
              this.getField("PRINTCOUNT").value = 0;
              for (var i=1; i<nPrint; i++) {
              this.getField("PRINTCOUNT").value = i;
              this.print({bUI: false, bShrinkToFit: true, nStart: 0, nEnd: this.numPages - 1});
              }
              Attached Files

              Comment


              • #22
                @JRB : Wow , its work. Thank you so much.

                Thank you very much every one .

                Comment


                • #23
                  JRB ,It is very kind of you to frequently help Javascripts related questions on our Foxit forum´╝îwe really appreciate your efforts and help.

                  Comment


                  • #24
                    Thank you Lisa_lee

                    How can I send you a private message?

                    Comment


                    • #25
                      You can create one ticket from Create ticket and input "Attention: Lisa" as the subject, so she will take care of it.

                      Comment


                      • #26
                        It says "Invalid email or password".

                        Attached Files

                        Comment


                        • #27
                          JRB

                          Sorry for the inconvenience. Is your account an Foxit Account? If not, please help sign up first from the below page first.
                          https://account.foxit.com/site/sign-up

                          Comment

                          Working...
                          X