copy image to clipboard not working on Windows server 2008

Mar 15 2010 4:36 AM

I have a small STA method which works perfectly ok with Windows XP / 2003 environments.
Here is the working code -

protected static void CopyInlineShapeFromClipbord()
{
string imageFileName = string.Empty;
_oWordApplication.Selection.Copy();
Computer computer = new Computer();
           
if (computer.Clipboard.GetDataObject() != null)
{
System.Windows.Forms.IDataObject data = computer.Clipboard.GetDataObject();
if (data.GetDataPresent(DataFormats.Bitmap))
{
Image image = (System.Drawing.Image)data.GetData(
DataFormats.Bitmap, true);
imageFileName = _imageUrl + ".gif";
image.Save(imageFileName, ImageFormat.Gif);
_imageUrl = imageFileName;
}
  }
}
It doesn't work on Windows server 2008 with IIS 7.0 Are there any knows issues with the environment?
Is there a work around?