XLSIO

It is impossible to use SVG in header of Excel worksheet. Also it is not possible to change the size of any embedded picture in header.

Are you plan to corre


1 Reply

KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team December 22, 2021 10:28 AM UTC

Hi Stanislav, 

Greetings from Syncfusion. Please find the response for your queries below. 

Query 
Response 
It is impossible to use SVG in header of Excel worksheet.  
This is to inform you that Microsoft Excel do not support svg images in header and footer. So this cannot be achieved by XlsIO as well. 
Also it is not possible to change the size of any embedded picture in header. 
The image can be resized first and then added as header or footer using XlsIO.  Please find the code snippet below. 

Image image = Image.FromFile("../../Data/selected.png"); 
image = new Bitmap(image, new Size(5,5)); 
 
worksheet.PageSetup.LeftHeader = "&G"; 
worksheet.PageSetup.LeftHeaderImage = image; 
 

Regards, 
Keerthi. 


Loader.
Up arrow icon