FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper OLE
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
OLE
Posted:

Enrico,

I need to build a connection between my FiveWin application and Outlook through OLE.

Have you any experience in this ?

Do you know where the instructions, to be used for Outlook, can be found ?

Thank you.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
OLE
Posted: Wed Oct 12, 2005 08:55 AM

I use OLE the make a connection between my FiveWin-application and MS-Word.

Word is launched together with my application. If I close Word accidently, I got an error "Variant type not implemented from OLE GetProperty", followed by a GPF.

My question : how can I test that a OLE is running ?

Thank you.

Michel D.
Genk (Belgium)

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: OLE
Posted: Wed Oct 12, 2005 09:01 AM

Try to not showing Word:

oWord = CREATEOBJECT( "Word.Application" )

// your code here

oWord:Quit()

EMG

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
OLE
Posted: Thu Oct 13, 2005 09:12 AM

Thank you very much for you help, Enrico.

I was able to solve my problem.

You mentioned CREATEOBJECT. It must be CREATEOLEOBJECT.

Michel D.
Genk (Belgium)

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
OLE
Posted: Thu Oct 13, 2005 09:25 AM

What is CREATEOLEOBJECT()? I never heard or used it.

EMG

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
OLE
Posted: Thu Oct 13, 2005 09:40 AM

Enrico,

The function CreateObject() doesn't exist. I got an error while compiling.

You can look in the sample OLE.PRG where CreateOLEobject() is used.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
OLE
Posted: Thu Oct 13, 2005 10:02 AM

Sorry Michel, now I know that OLE2.LIB offers CREATEOLEOBJECT() while xHarbour offers CREATEOBJECT(). I always used TOleAuto() with FW/Clipper and OLE2.LIB.

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
OLE
Posted: Thu Oct 13, 2005 12:39 PM

Search for VBA*.CHM in your hard disk.

EMG

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
OLE
Posted: Thu Oct 13, 2005 01:00 PM

Enrico,

Thanks.

Michel

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 155
Joined: Tue Dec 30, 2008 03:07 AM
OLE
Posted: Fri Oct 14, 2005 09:57 AM
Look at and this you it helps

http://www.dbsoft.gr/ole2/OleOutlook.zip

Friendlily
john
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
OLE
Posted: Fri Oct 14, 2005 12:05 PM

Thanks, John, for your tip.

Unfortunately, this link doesn't exist anymore.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion