I have written a module that uses dishelper to integrate with Word. It all seems to be working fine - my code uses Word to open files and extract text.
However, I need to modify some documents before loading them into Word, so I create a modified copy of the file but Word does not load the newly created file if it was created in the same Blitz 'session'. However, if I run my program again and allow it to use the file created previously, it does open in Word (I can also manually open it in Word).
This suggests that Blitz has some sort of lock on the file preventing Word from opening it. I've closed the stream and nulled it but still have the same problem.
Any ideas why the file is locked and how to unlock it?
|