Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Watermark a PDF from VFP
Message
From
06/01/2006 13:34:39
 
 
To
06/01/2006 09:23:01
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01084030
Message ID:
01084203
Views:
9
I don't know if this will help or not, but I use VFP 6.0 to write JavaScript to a PDF file. The JavaScript will print a current date stamp on each page every time the file is opened.

VFP Code:
For x = 0 To dfrnopMM - 1
uio = "Status"+AllT(Str(x))
uio2 = "Status2"+AllT(Str(x))
jse3MM.Remove(uio)
jse3MM.Remove(uio2)
uio = "Status" + AllT(Str(x))
uio2 = "Status2" + AllT(Str(x))
jse4MM = jse3MM.Add(uio,"text",x,50,20,250,0)
jse4MN = jse3MM.Add(uio2,"text",x,525,20,725,0)
uio2a = '"' + uio + '"'
uio2b = '"' + uio2 + '"'
			
Do Case
Case stamptype = 1 Or stamptype = 5
jse3MM.AddDocJavaScript(&uio2a,'var cDate = util.printd("mm/dd/yyyy hh:MM:ss tt" , new Date()); var f = this.getField(&uio2a);f.value = "Released - Printed: " + cDate;')
jse3MM.AddDocJavaScript(&uio2b,'var cDate = util.printd("mm/dd/yyyy hh:MM:ss tt" , new Date()); var f = this.getField(&uio2b);f.value = "Released - Printed: " + cDate;')
.....
Results in JavaScript for PDF file:

var cDate = util.printd("mm/dd/yyyy hh:MM:ss tt" , new Date()); var f = this.getField("Status23");f.value = "Released - Printed: " + cDate;
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform