how to use Word Automation methods by MFC
Posted on 2003-11-21
I met some mistakes when using Word Type library,I don't know how to use these argument.
for example,when I call Shapes.AddTextbox() as below:
Shape myShape = myShapes.AddTextbox(wdTextOrientationHorizontal,0, 0, 72, 384, bgAnchor);
I met an error "type mistake".
there is a simular mistake when I call Shapes.AddPicture() as below:
Range myRange = mySelection.GetRange();
InlineShapes myPic = myShapes.AddPicture("D:\\MyDocments\\My Pictures\\IMG_8415.JPG",
m_False, m_False, 0, 0, 72, 384, myrange);
I need answer urgently,please help me.