Neevia Technology Sites:   www.neevia.com  |  docuPub.com  |  www.neeviaPDF.com
:: Home :: Products :: Technical Support :: About Us :: Contact Us
Technical support > Neevia docCreator code samples
Example 8: Convert a PostScript document into PDF from Visual Basic  Print Example 


  Dim documentToConvert : documentToConvert="d:\test.ps"

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

  DC.setParameter "DocumentOutputFormat", "PDF"
  DC.setParameter "DocumentOutputName", "testPS_VB"
  DC.setParameter "DocumentOutputFolder", "d:\"

  Dim RVal : RVal = DC.setInputDocument(documentToConvert)
  If (RVal <> 0) Then MsgBox "Invalid input document!!!"

  RVal = DC.create
  Set DC = Nothing

  If (RVal <> 0) Then 
    MsgBox "Error while converting the document!!!"
  else
    MsgBox "Done!!!"
  End If




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