oPhoto = (object[])oPhotos[0];
client.DownloadFile(MyConstValue.ServerAddress + "/" + oPhoto[6].ToString(), "c:\\" + Convert.ToString(millionSecond) + ".jpeg");
imgPhoto = Image.FromFile("c:\\" + Convert.ToString(millionSecond) + ".jpeg");
imgPhoto = imgPhoto.GetThumbnailImage(120, 100, new Image.GetThumbnailImageAbort(target), new IntPtr());Clipboard.SetImage(imgPhoto);
oPhoto1 = "photo1";
document.Books.Item(ref oPhoto1).Range.Paste();
filePhoto = new System.IO.FileInfo("c:\\" + Convert.ToString(millionSecond) + ".jpeg");
if (filePhoto.Exists == true)
{
     filePhoto.Delete();
}
但是总抛出"文件c:\\622222211212.jpeg正由另一进程使用,因此进程无法访问该文件"这样的异常,
我程序测试了一下发现是由于GetThumbnailImage这个方法,
我的意图是将图片缩小,然后放到word中,不知道哪位高手有好的解决方法,