FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour excel and bmp-files
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
excel and bmp-files
Posted: Wed May 16, 2012 01:08 PM

Hello,

Is is possible to write a BMP-file to a cell in excel?
Thanks,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: excel and bmp-files
Posted: Wed May 16, 2012 01:24 PM
Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oExcel

    oExcel = CREATEOBJECT( "Excel.Application" )

    oExcel:WorkBooks:Add()

    oExcel:ActiveSheet:Shapes:AddPicture( "C:\FWH\BITMAPS\FIVEWIN.BMP", .F., .T., 50, 50, 200, 200 )

    oExcel:Visible = .T.

    RETURN NIL


EMG
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: excel and bmp-files
Posted: Wed May 16, 2012 01:48 PM

Thanks,

It's working nice :)

Regards,
Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion