
October 12th, 2004, 04:01 AM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Exporting bitmap to excel
I have to paste a bitmap to a selected range in excel using asp.net
oExcel = New Excel.Application()
wbk = oExcel .Workbooks.Open("c:\temp\book1.xls")
wks = oExcel .Worksheets(1)
rng = wks.Cells(3, 3)
rng.Select()
strPictureFillPath = "C:\Documents and Settings\Administrator\My Documents\My Pictures\Sample.jpg"
wks.Pictures.Insert(strPictureFillPath).Select()
the above code doesn't work.
Can anyone suggest a way out!!!!!
|