Open a msg file

Open a msg file

Postby Otto » Tue Jun 25, 2013 2:10 pm

To all,
Does someone know how to open a msg-file.
I tried following but get compiling errors:

Code: Select all  Expand view
    TRY
    oOutlook := TOleAuto():New( "Outlook.Application" )
    CATCH
    Msginfo( "Outlook nicht installiert" )
    quit
    END

               outlookMsg := oOutlook:CreateItemFromTemplate("c:\emailArchiv\test.msg")
               msginfo( outlookMsg:body )
    msginfo( outlookMsg:subject )
   



--------------------Configuration: xfang - Release--------------------
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
C:\ENTWIC~1\winhotel\xfang\source\testole.prg(124) Error E0030 Syntax error: "syntax error at 'MSGINFO'"
1 error

No code generated
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
testole.c:
Error E2209 testole.c 27: Unable to open include file 'OOUTLOOK.xns'
Error E2141 testole.c 28: Declaration syntax error
Error E2451 testole.c 170: Undefined symbol 'OOUTLOOK'
Error E2141 testole.c 170: Declaration syntax error
Error E2190 testole.c 170: Unexpected }
Error E2040 testole.c 170: Declaration terminated incorrectly
Error E2040 testole.c 170: Declaration terminated incorrectly
Error E2190 testole.c 254: Unexpected }
Error E2109 testole.c 254: Not an allowed type in function hb_vm_SymbolInit_TESTOLE
*** 9 errors in Compile ***
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Duplicate resource: Type 2 (BITMAP), ID BOTTOM; File C:\ENTWICKLUNG_2012\WINHOTEL\XFANG\XFANG.RES resource kept; file C:\ENTWICKLUNG_2012\WINHOTEL\RESOURCE\ALLG.RES resource discarded.
Duplicate resource: Type 2 (BITMAP), ID TOP; File C:\ENTWICKLUNG_2012\WINHOTEL\XFANG\XFANG.RES resource kept; file C:\ENTWICKLUNG_2012\WINHOTEL\RESOURCE\ALLG.RES resource discarded.
1 Datei(en) kopiert.
xfang.EXE - 11 error(s), 0 warning(s)




Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm

Re: Open a msg file

Postby Antonio Linares » Tue Jun 25, 2013 2:37 pm

Otto,

It seems as you have not posted all your code there, as I see this in the errors: OOUTLOOK.xns used as an include file.

What is there in such file ? Is it used ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Open a msg file

Postby Otto » Tue Jun 25, 2013 4:13 pm

Hello Antonio,
thank you. I thought I have delete the topic.
In the same moment when I posted the code I saw that I had a semicolon at the end of the line.
The code I posted works fine.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6005
Joined: Fri Oct 07, 2005 7:07 pm

Re: Open a msg file

Postby Antonio Linares » Tue Jun 25, 2013 6:01 pm

good, thanks for the explanation :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests

cron