Inserting image as a LeftHeader in Excel.

Hey, I'm trying to insert an image as a header in an Excel document using C#. I've tried

sheet.PageSetup.LeftHeader = @"pathToImage";

sheet.PageSetup.LeftHeader = "&G";

And

sheet.PageSetup.LeftHeader = Image.FromFile(@"path");

But they don't work.

by Gnzzz via /r/csharp

Leave a Reply