Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Office 2007 Komponenten (https://www.delphipraxis.net/91655-office-2007-komponenten.html)

CVMP 8. Mai 2007 10:58


Office 2007 Komponenten
 
Hallo!

Kann mir jemand von euch sagen wo ich aktuelle Office Komponenten herbekomme.
Die bei Delphi dabei sind gehen bei mir nur bis OfficeXP und jetzt habe ich da ein Problem mit Office 2007?
Aktuell verwende ich dclofficexp70.bpl

Danke!

Bernhard Geyer 8. Mai 2007 11:11

Re: Office 2007 Komponenten
 
Welches Problem. Nach den COM-Regeln müssen neue Versionen von Anwendungen die alte Schnittstelle unterstützen.
Ansonsten kannst du selbst die Typbibliothek über den Menüpunkt "Projekt/Typbibliothek importieren" importieren.

CVMP 8. Mai 2007 14:42

Re: Office 2007 Komponenten
 
Danke für deine Antwort Bernhard.

Habe folgenden Code der mit Outlook 2002 & 2003 funktioniert aber mit 2007 nicht.
Was soll ich deiner Meinung nach ändern?

var
NmSpace : NameSpace;
DestFolder : MAPIFolder;
MyTaskItem : _TaskItem;

begin
OutlookApplication1.Connect;
NmSpace := OutlookApplication1.GetNamespace('MAPI');
NmSpace.Logon('', '', False, False);
MyTaskItem:= OutlookApplication1.CreateItem(olTaskItem) as _TaskItem;
MyTaskItem.Subject:= 'Subject';
MyTaskItem.Body:= '..... text';
MyTaskItem.Display(true);
MyTaskItem.Save;
OutlookApplication1.Disconnect;
end;

Mario

Bernhard Geyer 8. Mai 2007 14:55

Re: Office 2007 Komponenten
 
Welche Fehlermeldung/Problem kommt jetzt bei welcher Quellcodezeile?

CVMP 8. Mai 2007 15:09

Re: Office 2007 Komponenten
 
"Schnittstelle nicht unterstützt"

... kommt beim Debugger wenn ich über die Zeile
MyTaskItem:= OutlookApplication1.CreateItem(olTaskItem) as _TaskItem;
gehe.

Bernhard Geyer 8. Mai 2007 15:12

Re: Office 2007 Komponenten
 
Ist auch Office registriert/aktiviert?
Hast du es über eine alte Office-Version drüberinstalliert?

CVMP 8. Mai 2007 15:19

Re: Office 2007 Komponenten
 
Ja, ist aktiviert!
Ist eine Neuinstallation!


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:28 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz