none
Insertimg image error in Excel 2010 RRS feed

  • 질문

  • I am developing excel automation in VS2010 and .NET 4.0 on windows 7.

    my program is compatible with Excel 2003, 2007 and 2010.

    But only one problem is that I can not to insert image in excel 2010.

    Of course code is same and below.

    object pictures = WorkSheet.GetType().InvokeMember("Pictures", BindingFlags.GetProperty, null, WorkSheet, null);
    object pic = pictures.GetType().InvokeMember("Insert", BindingFlags.InvokeMethod, null, pictures, new object[] { filename });
    pic.GetType().InvokeMember("Top", BindingFlags.SetProperty, null, pic, new object[] { top });
    pic.GetType().InvokeMember("Left", BindingFlags.SetProperty, null, pic, new object[] { left });

    Excel shows me error message with error box X marked (can not show connected image)

    How can I solve this problem?

    Excel 2010 Method is different from other version?

    If different, How can I get information?


    • 편집됨 over programmar 2012년 11월 26일 월요일 오전 5:03 update
    2012년 11월 26일 월요일 오전 4:24

답변