title: Word 2007 OLE Locks File and Won't Close
body: <p>My application recognises RTF on the clipboard and 'Paste' saves that RTF to a temporary RTF file. I then use <code>COleClientItem::CreateFromFile</code> to embed the data as an OLE RTF document (rendered by Word). I then try to remove the temporary file.</p>
  
  <p>On WinXP / Office 2003 this was all fine. Since I moved to Win7(x64)/Office 2007, Word hangs around, locking the temp RTF file. <code>COleClientItem::Close</code> doesn't do anything. Is there anyway I can prevent Word from locking the file so I can delete it? (I don't mind Word hanging around that much, if I could tidy up properly).</p>