|
I am having an issue printing from a web interface. I am using a hyperlink to define a set of annotations on an image. The problem arises when the hyperlink does not resolve quickly enough and the image prints without applying the annotations. How can I sychronize the operations so that I can be assured that all the required work is done before I send the item off to the printer. I am currently using a timeout but varying users are having issues with performance from one environment to another. The documentation is pretty sketchy around this topic.
Private Sub LEAD1_BitmapDataPathClosed()
Dim timeOut, iTimerID
timeOut = 250 'timeOut to let LEAD apply redactions
iTimerID = -2
If Not UCase(sAnnotationURL) = "NO_REDACTION_DEFINED"
Then LEAD1.AnnDataPath = sAnnotationURL
iTimerID = window.setTimeout("Call_Print", timeOut, VBScript) 'We need to sit here for bit to let LEAD apply the redaction
Else LEAD1.AnnDataPath = ""
Call_Print
End If
End Sub
|