Will 保哥
unread,Jan 28, 2009, 12:12:12 AM1/28/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to excellibrary
Hi,
Is there any way could put images into Excel file?
I tried to use the following code to add a picture before worksheet
added to workbook.Worksheets and save, but it doesn't work.
Picture pic = new Picture()
{
ImageFormat = EscherRecordType.MsofbtBlipBitmapPNG,
ImageData = File.ReadAllBytes(@"C:\a.png"),
UpperRow = 10,
RightCol = 10,
BottomRow = 10,
LeftCol = 10
};
worksheet.Pictures.Add(new Pair<int, int>(1, 1), pic);
BR,
Will