01-27-2008, 10:38 PM
I think pictures don't belong to cells.
When you don't know how to automate Excel using QM, try to record in Excel what you want to do. Then either run the Excel macro from QM (es.ws.Application.Run("Macro1")), or paste the VB code in QM and make some changes.
When you don't know how to automate Excel using QM, try to record in Excel what you want to do. Then either run the Excel macro from QM (es.ws.Application.Run("Macro1")), or paste the VB code in QM and make some changes.
ExcelSheet es.Init
IDispatch ws=es.ws ;;use IDispatch because then is easier to make Excel macro work in QM
ws.Range("B2").Select
Excel.Picture p=ws.Pictures.Insert("c:\windows\soap bubbles.bmp")
ws.Rows("2:2").RowHeight = p.Height
ws.Columns("B:B").ColumnWidth = p.Width/5.3 ;;p.Width is in pixels whereas ColumnWidth is characters...
Quote:is it possible to create .xls