hi Support
I am using asp.net to write a picture to an excel file.
I get a problem that such original picture file is locked by w3wp.exe process after excel is saved.
Please help. Thanks
Bruce
Workbook wb = new Workbook();
Worksheet ws = wb.Worksheets[0];
String path = Server.MapPath("/adorable.jpg");
using (System.IO.FileStream stream = System.IO.File.OpenRead(path))
{
ws.Pictures.Add(1, 1, stream);
wb.SaveToFile(Server.MapPath("/test.xls"));
}