![]() |
Word Öffnen
Hallo Leute,
ich habe ein kleines Problem wo ich eure hilfe benötige. Ich möchte per Button Word oder Excel öffnen. Ich möchte keine Worddatei öffnen. Hat da jemand schon mal mit erfahrungen gemacht? Danke für eure hilfe. |
AW: Word Öffnen
Entwder per ShellExecute oder per COM/OLE
|
AW: Word Öffnen
Vielleicht so..
Delphi-Quellcode:
Es gibt aber verschiedene Möglichkeiten, zum einfachen Öffnen würde ich wie zuvor schon erwähnt,
begin // Comobj( Uses )!!
try word := GetActiveOleObject('Word.Application'); except try // .. word := CreateOleObject('Word.Application'); except ShowMessage('Word konnte nicht gestartet werden!'); exit; end; end; ShellExecute nehmen. |
AW: Word Öffnen
Hallo,
mit der WordApplication Komponente (ab Delphi 7, glaube ich) geht auch folgendes:
Delphi-Quellcode:
Beste Grüße
with WordApplication do begin
try Connect; Visible := True; Documents.Add(EmptyParam, EmptyParam, EmptyParam, EmptyParam); with Selection do begin TypeText('Some Text' + #11); ... end; finally ... end; Thomas :) |
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:07 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz