Page 1 of 1

Record of when printed

Posted: Tue Feb 04, 2014 1:26 pm
by Anthony
How can I script something to record a date when a job was last printed?

Posted: Wed Feb 05, 2014 4:45 pm
by COBS Tech Support
You could try the following -

Open the Screen Editor and select Service Manager.

(Screen Editor is found on the icon bar under the "Maintenance" group - click on Maintenance, bottom left corner of the software.)

One the Screen Editor is open, select from the menu Insert|Field

When the Field Object window opens type: Printdate alongside "User Field" and change the "Type" to "Date". You can also optionally select "Always Lock".

Press Save.

Then from the menu select File|Screen Script. Assuming it's empty, paste the following into this window:

Code: Select all

If Mode = 5
  If SCRRead("Printdate") # Today()
     SCRWrite("Printdate", Today())
  Endif
Endif

Return TRUE


The press Save on the toolbar, then select File|Exist and when prompted press Yes to save changes.

Nobody else can have Service Manager open when you do this.

Note: The above changes will copy today's date into the "Printdate" field when you go to print. As mentioned, this doesn't guarantee that the job was printed, only that someone requested printing. Because the print date is changed, the user will be prompted to save changes to the job card afterwards, as the record was changed.