Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to write a VSTO add-in that imports a logo into the Excel header. Without a margin left, right, top. The Excel document should later be saved as a PDF document with the logo. (I know how to do that in Word). Can someone help me?

What I have tried:

<pre>
So far I've found the following code:

...
sheet.PageSetup.LeftHeaderImage = "C:\....\logo.pgn";
sheet.PageSetup.LeftHeader = "&G";
...

But how can I display the logo without a page border? 
Posted
Updated 15-Feb-22 9:59am

1 solution

Take a look here: Remove a page border[^]
 
Share this answer
 

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