TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
HumptyNotSoDumpty
NA
23
0
Simple Picture Insert into Excel Worksheet
Nov 12 2004 8:09 AM
Would someone please kindly explain how I can do a simple insert of a picture into an Excel worksheet? I am using C#.Net 2003 with Microsoft Excel 2000, and have been able to insert an image using VB.Net, but cannot accomplish the same with C#. For example, VB.Net: _____appXL.ActiveSheet.Pictures.Insert("C:\Images\Image1.jpg").Select() In C# I have been trying to use different variations of the following: _____Image imgLogo1 = Image.FromFile( @"C:\Images\Image1.jpg"); _____((Excel.Range) objWorksheet.Cells[5, 5]).Select(); _____objWorksheet.Pictures( imgLogo1); If anyone knows, please help!
Reply
Answers (
2
)
ICommunicate ??
Read from an Ecxwl Spreadsheet using c#