TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
GGGGGGG KKKKKK
NA
3
0
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?
Reply
Answers (
0
)
How to detect a picturebox is on a drawn line?
Word 2007 - How to disable Close button.