Jump to content

This topic is 7963 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I want to insert an id_number in a document only after it is printed and have that number increment by 1 for the next time the document is printed. How would I do this?

Posted

It depends upon what you mean by "after it is printed". If you really need to verify that readable, printed copy came out of the printer, you probably can't, unless you have a human check and acknowledge a dialog box ("Did the job print correctly?").

It is easy enough to add a step in a print script:

Print()

Set Field[PrintCntr, PrintCntr+1]

or ask the user to check.

Print()

Show Message["Did the job print correctly?"]

If [status(CurrentMessageChoice) = 1)]

Set Field[PrintCntr, PrintCntr+1]

End If

-bd

Posted

If you're printing multiple records in the same print job, then put a loop around the SetField command and add a GoToRecord[Next, Exit after last] command in the loop as well.

This topic is 7963 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.