Document Level Vbscript Write To Text File & Cancel Print
Hello,
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.
-
I figured out how to do what I desire.
0 -
It's good that you figured it out,
Would you mind Sharing it?
Thanks
0 -
I too would like to see, file io in VB for Bartender is so much fun. Give me true .net capability please, seagull, in C#. Kinda like in Unity.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare