The following VBScript example demonstrates how to submit a document to DocConverter from a remote client. Refer to the Submit and CheckStatus methods for additional information and usage requirements.
NOTE: This example requires two licenses of activePDF DocConverter or one license and the Remote Client for DocConverter.
' IP address of server with DocConverter
varIP = "192.168.1.104"
' Port of server with DocConverter
varPort = 0
' Timeout
varTimeout = 60
' Instantiate Object
Set objDC = CreateObject("APDocConv.Object")
' Timeout for CheckStatus
objDC.StatusTimeout = varTimeout
' Submit the file for conversion
varReturn = objDC.Submit(varIP, varPort, varFile,_
varOutput, varError, varOriginal, "", "", False, "")
If varReturn <> 0 Then Error("Submit") End If
' Check the status of the conversion
varReturn = objDC.CheckStatus(varIP, varPort, varFile, varOutput, varError)
If varReturn <> 1 Then
Error("CheckStatus")
Else
Msgbox "Done!"
End If
' Release Object
Set objDC = Nothing
' Error Handling
Sub Error(Method)
Msgbox "'" & Method & "' failed with a '" & varReturn & _
"'" & VBCRLF & "KB article on Return codes:" & VBCRLF & _
"http://www.activepdf.com/support/kb/?id=10347&tk=ts"
Set objDC = Nothing
Wscript.Quit
End Sub
Related Articles
10674 - Local Submission with DocConverterThe following VBScript example demonstrates how to submit a document to DocConverter locally. Refer to the 10663Submit and ...
11788 - Remote Connection for DocConverter Version 3.8DocConverter 3.8 supports Remote Client access to the Application Server. This article provides the steps needed to set up a remote connection and references for more details on its use....
The information in this article is for the use of activePDF Customers and Evaluation Users Only. No part of this document may be transmitted or reproduced without the express written consent of activePDF.