none
Insert Image in Export Excel using Closed XML RRS feed

  • Question

  • Hello Team,

    I am using SharePoint 2013 with CSOM code. I have created export excel Functionality using Closed XML. While exporting excel, i am creating header and footer for exported excel in Page-setup property. I am able add text but unable to insert/add image in header. 

    I am using below command to insert image:

    worksheet.PageSetup.Header.Left.AddImage (imgpath, XLHFOccurrence.AllPages);

    While using this command am getting error like below image:

    https://social.msdn.microsoft.com/Forums/getfile/1095907

    Error is "An Exception of type System.NotImplementedException: occurred in ClosedXML.dll but was not handled in user code

    Additional Information: The method or operation is not implemented

    So please help me out from this issue.

    Thanks in Advance.









    • Edited by sphari.reddy Monday, July 10, 2017 5:28 AM
    • Moved by Chenchen Li Tuesday, July 11, 2017 2:17 AM OffTopic
    Monday, July 10, 2017 4:46 AM

All replies

  • Hello,

    This forum is for Open XML SDK, your issue about Closed XML is out of scope. After researching, Closed XML is a third party reference, so I would move this thread to Off-Topic forum and I would suggest you open an issue on https://github.com/ClosedXML/ClosedXML. Thanks for your understanding.

    Regards,

    Celeste


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, July 11, 2017 2:16 AM
  • Thank you Celeste
    Tuesday, July 11, 2017 3:23 AM