Click here to Skip to main content
15,891,816 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hello Everyone

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 below error message:

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.

What I have tried:

i have tried to get images from SharePoint library and Visual Studio solution files and from local file system.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900