Converting word doc's to pdf with VB
From: Venkat Shiva Reddy (venkat5768_at_yahoo.com)
Date: 06/05/04
- Next message: Bethany: "Star Office to Microsoft Office 2003?"
- Previous message: Pat Garard: "Re: Trial version - can't save document to floppy"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Jun 2004 23:31:01 -0700
What's wrong with this code, it's creating 0 bytes size pdf file. Is their any other way to convert .doc to .pdf with VB code, i have Acrobat distiller installed in my comp.
Private Sub btnConvert_Click()
Dim msWord As New Word.Application
msWord.Visible = True
msWord.ActivePrinter = "Acrobat Distiller"
msWord.Documents.Open App.Path & "\test.doc"
msWord.ActiveDocument.PrintOut , , , App.Path & "\test.pdf"
msWord.ActiveDocument.Close False
' Should check and quit word when done
msWord.Quit False
Set msWord = Nothing
End Sub
- Next message: Bethany: "Star Office to Microsoft Office 2003?"
- Previous message: Pat Garard: "Re: Trial version - can't save document to floppy"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|