Neevia Technology Sites:   www.neevia.com  |  docuPub.com  |  www.neeviaPDF.com
:: Home :: Products :: Technical Support :: About Us :: Contact Us
Technical support > Neevia docuPrinter SDK code samples
Example 6: Convert a PowerPoint document into PDF (docuPrinter PowerPoint Macro) from Visual Basic  Print Example 

Sub PowerPointConverter()

   Dim documentToConvert : documentToConvert="c:\test.ppt"

   Dim DPSDK : Set DPSDK = CreateObject("docuPrinter.SDK")

   DPSDK.DocumentOutputFormat = "PDF"
   DPSDK.DocumentOutputName = "demoPPT2"
   DPSDK.DocumentOutputFolder = "c:\"

   DPSDK.PDFAutoRotatePage = "PageByPage"

   DPSDK.HideSaveAsWindow = true
   DPSDK.DefaultAction=1
   DPSDK.ApplySettings

   Dim DPPPT : Set DPPPT = CreateObject("docuPrinter.PowerPointMacro")
   DPPPT.CTransition=true
   DPPPT.CHBookmarks=true
   DPPPT.CInternetLink=true
   DPPPT.CDocInfo=true
   Dim RVal : RVal = DPPPT.ConvertDocument( documentToConvert )

   Set DPPPT = Nothing
   Set DPSDK = Nothing

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



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