I’m having an issue. My invoke code hangs on line 3, so I would expect the WriteLine(“test”) in the second branch to execute and complete, however it never does.
The intention was to have a 30 second delay in the second Pick Branch, but the WriteLine is just for testing purposes. Can anyone help please?
Dim app As Microsoft.Office.Interop.Word.Application = New Microsoft.Office.Interop.Word.Application
Dim doc As Microsoft.Office.Interop.Word.Document = app.Documents.Open(filepath.ToString)
Dim doctxt As String = doc.Content.Text
content = doctxt