Hi everybody, I use a 'BackgroundWorker' to generate a word document in background. I want to insert a bitmap which is generate on the fly. If I use this method (that work outside the thread) :
I have an error : Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
How can I set the backgroundworker to be 'STA' Is there an another way to proceed