VB Script Code to Test Form Merge ActiveX Process
From Support
The sample code listed below can be used to troubleshoot the RJS Forms Merge ActiveX.
Install the RJS VB Script Component, create a new script, insert the following code and press F8 to step thru the code and test it.
Sub main
Dim x As Object Dim rtn As Long
Set x = CreateObject("RJSFormMerge.CLSFormMerge")
x.imagepath = "c:\wspeform" x.imagefileext=""
rtn = x.RJSMergeFormDocsReport("C:\program files\formdocs\TEMPLATES\invoice.fdt","C:\program files\formdocs\TEMPLATES\invoice.tlr","C:\program files\formdocs\TEMPLATES\invoice.txt","","c:\test.pdf",1,1)
End Sub
