Hi!
I'm trying to add a Date and time to my PDF file, this should only show when I print the document.
I know how to hide the field so that it only shows when I print, but I have some problems with the time.
Now I'm using:
function Print(){
var oDate = new Date(); // get the current date time object
var sDate = util.printd("mm/dd/yyyy h:mm t" , oDate); // format date time string
this.getField("TimePrint").value = sDate + "m"; // fillin the field value
}
Print();// call my function
But I have some problems with this.. It shows the right date and hour, but never changes the minutes from 09.
I also have a "problem" with my print Button:
var n = app.response("Number of copies: ");
var pp = this.getPrintParams();
if (n > 0) {
pp.interactive = pp.constants.interactionLevel.silent;
pp.NumCopies = eval(n);
this.print(pp);}
this.resetForm() ;
Every time I press this it shows a waring messege, can I take it away in any way? And, can I add that the default number of prints is 1, not 0?
Hope you can help,
Erika