Converting images from word document into bitmap object

前端 未结 3 2064
天涯浪人
天涯浪人 2020-12-18 05:57

As per project requirement we need to convert images from word document into bitmap object. To achieve this we tried to convert inlineshape object from Microsoft.Office.Inte

3条回答
  •  不知归路
    2020-12-18 06:34

    Resolved in this post: https://stackoverflow.com/a/7937590/1071212 It's a problem with STAThread:

    Thread thread = new Thread([Method]);
    thread.SetApartmentState(ApartmentState.STA);
    thread.Start();
    thread.Join();
    

提交回复
热议问题