View Single Post
 
Old 01-13-2016, 02:30 PM
AaaTeX AaaTeX is offline Windows 7 64bit Office 2013
Novice
 
Join Date: Jul 2014
Posts: 8
AaaTeX is on a distinguished road
Default

Yes I think we are. Below is the code. There is no close method for wordApplication
Code:
 
Dim wordApplication As Word.Application
Dim wordDocument As Word.Document
Dim tempStoreText As String
tempStoreText = Nothing
wordApplication = New Word.Application
wordDocument = wordApplication.Documents.Open(sRtfFilePath)
wordApplication.Visible = False
wordDocument.ExportAsFixedFormat(sPDF_FilePath, Word.WdExportFormat.wdExportFormatPDF, False)
wordDocument.Close()
wordDocument = Nothing
wordApplication = Nothing
This was not a problem with Office 2013. Just started with 2016.
Reply With Quote