How can we add an image to header and footer in excel in c#.net in a simple way ?

Posted by Rabbil under ASP.NET on 1/2/2013 | Points: 10 | Views : 1370 | Status : [Member] | Replies : 4
Hi All,

How can we add an image to header and footer in an excel sheet
(or on a word doc) without adding any other DLL as a reference ?

I've got these two ideas for different formats but the problem I'm facing is......

Suppose that when a user try to export any data to an excel sheet but by default we want to have a header and footer on the excel everytime when data is exported.(If you have any idea or code then please share it)
or
Alternatively , if I'm able to get the default header and footer after exporting the file to doc then how to bind the data to this word doc ?

I've got one code by which I'm getting the header and footer image in word but its using a different DLL file which I can't use.
but not understanding how to export it in excel sheet...

Thanks for your kind Attention and valuable Reponse

"I cannot teach anybody anything. I can only make them think"~ Socrates
Thanks And Regards



Responses

Posted by: Shubham on: 1/2/2013 [Member] Starter | Points: 25

Up
0
Down
simply add templet field in grid and in templet field add image

Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar

Rabbil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rabbil on: 1/3/2013 [Member] Starter | Points: 25

Up
0
Down
Can you Show with some coding examples ?

"I cannot teach anybody anything. I can only make them think"~ Socrates
Thanks And Regards

Rabbil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shubham on: 1/4/2013 [Member] Starter | Points: 25

Up
0
Down
Hi!! Rabbil
what type of desing are u try
like
heder------
image----------
data------------------
image--------------
fotter--------------
how type can u describe to me
?????

Thanks&Regards:-
Shubham Choudhary
Software Engineer
www.facebook.com/shubham.kunar

Rabbil, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rabbil on: 1/4/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Shubham !!

I want to insert an image in the header and footer(different image) using c#.net whenever a report is generated in word doc then it must load and display those images in the header and footer of the same doc.

"I cannot teach anybody anything. I can only make them think"~ Socrates
Thanks And Regards

Rabbil, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response