Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Fri, 9 May 2008 00:02:48 -0700 (PDT),    group: microsoft.public.word.oleinterop        back       


OLE in threaded mode   
Hi there,
I have some embedded jpg attachments in my DOC file.

I am extracting it like this:

shape.Select(ref nullobj);
shape.Application.Selection.CopyAsPicture();
IDataObject ido = Clipboard.GetDataObject();

ido will contain the object i want.

This code works fine in primary thread (Application thread)

But when i call the same thing from a method in my child thread, ido
returns null.

Whats is wrong here?


Thank You
miztaken
date: Fri, 9 May 2008 00:02:48 -0700 (PDT)   author:   miztaken

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us