How can I resize a picture that has been inserted

HI,

I have two questions -

1 ) Is it possible to resize a picture that has been inserted into an excel? if so how? this is the code that i am using to insert image

worksheet.Pictures.Add(workbook.Worksheets[1].Cells.MaxDataRow + 2, intcol - 1, workbook.Worksheets[1].Cells.MaxDataRow + 4, intcol, @"\Portal\Explorer\AskQuestion\_res\img\hp_stretch.gif");

2) Do we have a word wrap option in aspose.cells? Ih our application the column width is fixed , and the headers need to be wrapped incase they exceed the specified size.. how can i acheive this?

thanks & Rgds

Soumya

1. When inserting into the Excel file, you can use properties in Picture class to resize it.

2. Please try Style.IsTextWrapped property.