Document Level Vbscript Write To Text File & Cancel Print Follow
I am seeking advice on how to perform the following with VBScripting:
1 - on print, open a text file
2 - write a new line to the file with data populated from a form with one data entry field
3 - close the text file
4 - cancel the print job
Overall, I want to use a form with a data entry field and once the print button on the form is clicked the data from the form is entered as a new line in the text file.
I am also seeking to have a date/time stamp inserted into the same line and before the document is printed cancel the print job.
Please see the script below I am working on. My document has two Template Object Data Sources (i.e., Text1, Text2) which I am trying to use in the script. Text1 is the data entry form field and Text2 is a date/time field.
Please sign in to leave a comment.