I used the below code for opening the document:
Dim filename as String=“test1.doc”
Dim rejectedfilepath as String="\rejectfolder" & filename
Dim filepath as String="\testfolder" & filename
Dim loadOptions As New LoadOptions(LoadFormat.Doc, password, “”)
Dim document As Document = New Document(filepath , loadOptions)
After opening the document for processing, due to some condition I want to move the word document from “filepath” to “rejectedfilepath” using “System.IO.File.Move(filepath, rejectedfilepath)” but it is throwing the error as:
“The process cannot access the file because it is being used by another process”.
Thanks in advance for help.