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
1/ The above is an cut down extract from a real scenario which is iterating through 1000s of .doc* files reading the text from them. The purpose of the Pick was to provide a timeout for if the invoke code fails to complete successfully.
2/ The invoke code works. The issue is the Pick is not working as expected. I.E if there left branch doesn’t complete (which it doesn’t as it hangs on line 3 when opening a specific document), then the right branch should (as it’s just a write line - although in reality it would be a 30 second delay activity with a throw SystemException).