카테고리 없음

Excel Automation 이미지를 링크가 아닌 파일에 삽입하기

케이피 2012. 7. 18. 09:29

_Worksheet m_sheet;


LPDISPATCH lpDispShape;

lpDispShape = m_sheet.GetShapes();

CShapes shapes;

shapes.AttachDispatch(lpDispShape);

shapes.AddPicture(

a_sPicturePath, //Filename

FALSE, //LinkTofile

TRUE, //SaveWithDocument

a_fLeft, //Left

a_fTop, //Top

a_fWidth, //Width

a_fHeight); //Height


shapes.ReleaseDispatch();


대충 요정도로 해주면 됨

사전 세팅은 말안해도 아시겠죵~?