Search code examples
c#.netexcelnpoi

NPOI - Add image to excel header


Can someone please help me out with how i can insert an image into the header of an excel document? I am using NPOI to generate my excel,i am able to insert text data in the header, however the documentation does not point out on how i can insert images into the header.


Solution

  • It looks like NPOI does not have a way to achieve this directly. As a work around a created a excel template with header image and used NPOI to fill the data. Hope it helps someone.