View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mark_newbs mark_newbs is offline
external usenet poster
 
Posts: 1
Default setting the Left or Right HeaderPicture

Hi,
I am working in c# and I am trying to set the HeaderImage of a worksheet. I
have tried several methods:

Excel.PageSetup pageSetup = (Excel.PageSetup)xlSheet.PageSetup;
pageSetup.LeftHeaderPicture.Filename = @"C:\image.gif";

as well as:

Bitmap bitmap = new ");
pageSetup.LeftHeaderPicture = bitmap;

neither of these seem to work.

There is very little documentation on this feature, can anyone help?

Cheers

Mark