Neevia Technology Sites:   www.neevia.com  |  docuPub.com  |  www.neeviaPDF.com
:: Home :: Products :: Technical Support :: About Us :: Contact Us
Technical support > Neevia Document Converter Pro code samples
Example 2: How to convert a file (submitFileEx method) from Visual Basic  Print Example 

  Dim fileToConvert : fileToConvert = "c:\test.doc"

  Dim DC : Set DC = CreateObject("Neevia.docConverter")

  DC.setParameter "DocumentOutputFormat", "PDF"
  DC.setParameter "PDFAutoRotatePage", "All"

  Dim rv : rv = DC.submitFileEx(fileToConvert,"c:\docs\out","c:\docs\error","c:\docs\orig")

  If (rv <> 0) Then
    MsgBox " *** submitFileEx error **** "
  Else
    rv = 2
    While (rv = 2)
      rv = DC.checkStatusEx(fileToConvert,"c:\docs\out","c:\docs\error")
      DC.doSleep 1000
    Wend

    If (rv = 0) Then
      MsgBox " Converted successfully"
    Else
      MsgBox " Error converting"
    End If
  End If



Copyright © 1999-2016 Neevia Technology. All Rights Reserved. Home | Products | Technical Support | About Us | Contact Us