Read Image in Excel

Technical support for Spire.XLS

Moderators: iceblue support, Flash, Manager

Read Image in Excel

Postby tomason » Tue Jan 18, 2011 7:51 am

When I read an image from Excel, may I change the size of the picture?
tomason
 
Posts: 11
Joined: Mon Dec 27, 2010 3:08 am

Re: Read Image in Excel

Postby iceblue support » Tue Jan 18, 2011 8:35 am

Thank you for your inquiry!
Of course you can.
1. get the picture via: ExcelPicture pic = sheet.Pictures[0];
2. get the Image object: Image image = pic.Picture;
3. change the size of the Image as a normal Image object: image.Height = 640; image.Width = 800;
e-iceblue support
User avatar
iceblue support
 
Posts: 244
Joined: Tue Dec 21, 2010 2:56 am


Return to Spire.XLS

Who is online

Users browsing this forum: No registered users and 0 guests