Announcement

Collapse
No announcement yet.

How can i increase number in textbox after print?

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

  • How can i increase number in textbox after print?

    I want to create a textbox that can automatic +1 after print. How can i do that? Thank you so much

  • #2
    htqonline , Thanks for using Foxit Software and I am sorry that currently Foxit PDF Editor is not supported to create an expandable table in PDF Form for automatic adding/removing row in PDF form. I've forwarded your request as a suggestion for Foxit Product Team's further consideration with suggestion ID#PHANTOM-11679.

    Any further questions or concerns, please contact us again at any time.

    Comment


    • #3
      Sorry i english so bad. I mean Increase the counting after print.

      Exp: In the textbox value is 1 , after print its should be 2 and continues like that 3, 4 ,5

      Comment


      • #4
        Place this script in the "Document Did Print" event, after adjusting the field name:

        this.getField("PRINTCOUNT").value += 1;
        Last edited by JRB; 11-15-2021, 10:38 AM.

        Comment


        • #5
          I am very happy to have been able to help you, do not thank me.

          Comment


          • #6
            JRB Thank you for sharing it, you are so nice.
            htqonline You can try with the javascript that JRB shared.

            Comment


            • #7
              ?



              - - - - - - - - - -

              Comment


              • #8
                @JRB : Thank you so much. Its worked
                @richell_huang : Thank you

                I have 1 more question: Is there anyway to make it print like, i put value is 10 then its will print 1 to 10 ? (10 copy)

                Comment


                • #9
                  I don't understand, please use a correct English since it's not my native language.

                  Comment


                  • #10
                    Do you mean you create one text filed and when you input value 10 in the text field, it will print 10 copies of the file?

                    Comment


                    • #11
                      I mean i create 1 text field and when i put value 10 in there , its will print 1 to 10 (like page 1 , page 2, page 3 ..... page 10), i just need to input 1 times to get 10 copy from 1 to 10. now i need to click print 10 times to get it
                      Last edited by Lisa_lee; 11-20-2021, 11:40 AM.

                      Comment


                      • #12
                        Originally posted by htqonline View Post
                        I mean i create 1 text field and when i put value 10 in there , its will print 1 to 10 (like page 1 , page 2, page 3 ..... page 10), i just need to input 1 times to get 10 copy from 1 to 10. now i need to click print 10 times to get it
                        htqonline, I am sorry that I am still not quite clear about your request yet based on your new descriptions. Would you mind sending us one PDF file sample and then rephrase it again in more details based on the file sample.

                        Look forward to your reply.

                        Comment


                        • #13
                          @Lisa_lee : Thank you for ur reply
                          On my pdf file have a serial number like : 123456789 - x , x will count from 1,2,3,4,5 to 200 or more on each page i print. If i want "123456789 - 1" to "123456789 - 200" i will need to print 200 times (send it to the printer). Now i just want to pirnt it in 1 times.

                          Sorry my english very bad
                          Last edited by htqonline; 11-20-2021, 01:38 PM.

                          Comment


                          • #14
                            htqonline ,Thanks for your request. Based on the request that you mentioned, please choose to input the total copies that need to be printed and check the option "Collate“ in the Foxit print dialog box and then print the document to see if it will meet your requirements?
                            Click image for larger version

Name:	1.png
Views:	173
Size:	57.2 KB
ID:	185998

                            Comment


                            • #15
                              @Lisa_lee : Thanks
                              I tried and it gave me 200 pages with serial number 123456789 - 1 , i have 1 page but i want to print 200 page in diffirent serial number, and the serial number count from 123456789 - 1 to 123456789 - 200.

                              Comment

                              Working...
                              X