Releasing the file after it is saved

23 views
Skip to first unread message

John

unread,
Jun 24, 2010, 5:25:39 PM6/24/10
to excellibrary
I am using some test code, that generates a XLS file, and emails it to
myself. Upon attempting to delete the XLS file, it fails because it
is still in use. I have tried to issues a
System.Runtime.InteropServices.Marshal.ReleaseComObject(obj) on
workbook_1 but it does not release the file so it can be removed.

Would anyone have any idea's?

Thanks
Reply all
Reply to author
Forward
0 new messages