AspPDF - Run VBscript on server action success?

Hi,

I have used AspPDF on another project completed in DW and now I am performing an upgrade on the customer’s website in Wappler.

How can I run a VBscript on a server action success?

This is the VBscript I need to run.

<%
Set PDF = Server.CreateObject("Persits.PDF")

' Open an existing document, form W-9
Set Doc = PDF.OpenDocument( Server.MapPath( "invoices/me2youinvoice.pdf" ) )

' Create font object
Set Font = Doc.Fonts.LoadFromFile("c:\windows\fonts\cambriai.ttf,3")

Doc.Form.RemoveXFA


' Set employee
Set Field = Doc.Form.FindField("employee")
Field.SetFieldValue Ray, Font


' We use Session ID for file names
' false means "do not overwrite"
' The method returns generated file name
Path = Server.MapPath( "\invoices") & "\me2youinvoice_.pdf"
FileName = Doc.Save( Path, false)

Response.Write "
Success. Your PDF file " & FileName & " can be downloaded here."
Set Page = Nothing
Set Doc = Nothing
Set Pdf = Nothing

%> 

Thanks, Ray.

Community Page
Last updated: