ActivePDF
Shopping Cart My Account Help Contact Us
Request a Call
Search
Products Solutions Support Downloads Corporate
Submit an Issue
Knowledge Base
Server Product Support
Examples & How-Tos
Support Options
Support Policies
Annual Subscription
Extensions
Documentation
Resource Links
   
 
 
 
 

HomeSupportKnowledge Base
 
activePDF KB #10672 - Remote Submission with DocConverter
activePDF KB #10672 - Remote Submission with DocConverter
Information: Example Printer Version | Return to Search
Remote Submission with DocConverter
 
Product Version Service Pack Code Samples  
DocConverter
3.5.2
3.8
SP4
SP5
SP6
SP7
VBS
ASP
CF
 
Description
 
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.

These files are required:
  • test.txt - The input document to convert.
  • BasicCOM(remote).vbs - Code detail provided below.
Click here to download this example (includes required files):
' Define Variables
    ' Remote share
    varPath = "\\192.168.1.35\test\"

    ' File to convert
    varFile = varPath & "test.txt"

    ' Output Directory
    varOutput = varPath
    
    ' Error Directory
    varError = varPath
    
    ' Original Directory
    varOriginal = varPath
    
    ' 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 DocConverter
    The following VBScript example demonstrates how to submit a document to DocConverter locally. Refer to the 10663Submit and ...


  • 11788 - Remote Connection for DocConverter Version 3.8
    DocConverter 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....


 
Keywords
 
StatusTimeout, Submit, CheckStatus, doc, converter, convert, remote, submission, docconverter, dc, via, remote, location, asp, cfm, cf, coldfusion, cold, fusion, VBS, VBScript, vb, script, example, create, from, html, text, method, property
 
Last Updated 2008-07-25 Printer Version | Return to Search
 
Knowledge Base Article Feedback*
*KB article feedback ONLY (submit support issues here)
Quality of this article?
  Poor Excellent 
1 2 3 4 5 6 7 8 9 10
Is this article helpful? Yes       No       Maybe
Comments (Optional)
Email Address (Optional)
Please enter the word "PDF"
(without quotes)
 
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.

Copyright © 2005, activePDF, Inc. All Rights Reserved
2003 activePDF Site Map Feedback Privacy Policy Legal