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 3: How to convert an URL from VB.NET  Print Example 

  Dim urlToConvert As String = "http://neevia.com"

  Dim DC As Object
  DC = CreateObject("Neevia.docConverter")

  DC.setParameter("DocumentOutputFormat", "PDF")
  DC.setParameter("DocumentOutputFolder", "c:\")
  DC.setParameter("PDFAutoRotatePage", "All")

  Dim rv As Integer
  rv = DC.submitUrl(urlToConvert, "neevia.url", "")

  If (rv <> 0) Then
    MsgBox(" *** submitUrl error **** ")
  Else
    rv = 2
    While (rv = 2)
      rv = DC.checkStatus("neevia.url", "")
      Application.DoEvents()
      DC.doSleep(1000)
    End While

    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