We're trying to build a WF that triggers when a specific stamp gets created and then propagates that stamp to all subsequent pages of the document. I've got the code working, but in this case the stamp we're copying contains a %(Date) token in it. I can get it to replicate the stamp properly, but the copies have the literal %(Date) text in the stamp instead of resolving to the actual date. I've tried a handful of different properties, replacing CustomData properties, etc. but I can't get it to change to the actual date. Any ideas on this one? Basic Rough Code below:
dim doc as DocumentInfo = Document.GetDocumentInfo(integer.Parse(GetTokenValue("Entry ID")),RASession) dim anns = doc.GetAnnotations for each ann as AnnotationBase in anns if ann.AnnotationType = AnnotationType.Stamp Then dim annstamp as StampAnnotation = ann dim stampid as Integer if annstamp.CustomData.StartsWith("REC'D %(Date)") Then if annstamp.CustomData.EndsWith("FAX") Then stampid = 87 Else stampid = 86 end If for p as Integer = annstamp.PageNumber + 1 to doc.PageCount dim page as PageInfo = doc.GetPageInfo(p) dim si as StampInfo = Stamp.GetInfo(stampid, RASession) dim ns as new StampAnnotation(doc, p, si) ns.Coordinates = annstamp.Coordinates ns.Color = annstamp.Color ns.Position = annstamp.Position Page.AddAnnotation(ns) page.Save next End If End If Next