Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Watermark a PDF from VFP
Message
De
06/01/2006 13:34:39
Steven Dyke
Safran Seats USA
Texas, États-Unis
 
 
À
06/01/2006 09:23:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01084030
Message ID:
01084203
Vues:
8
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;
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform