![]() |
Excel Word SpeicherPfad
Hi leute ich habe eine frage.
Wenn ich aus meinem Programm ein worddokument öffne übergebe ich einen speicherort mit:
Delphi-Quellcode:
Funktioniert wunderbar!
WordApplication.ChangeFileOpenDirectory(hauptVerz + '\Dokumente\');
wie ist das in Excel ?
Delphi-Quellcode:
dass muss doch gehn oder ??
ExcelApplication.ChangeFileOpenDirectory(hauptVerz + '\Excel\');
lg CF |
Re: Excel Word SpeicherPfad
Ahrrr... gibt es niemanden der mir helfen kann ?
Einfach den speicherpfad übergeben ... muss doch gehhhn danke! sry 4 doppelpost ! lg CF |
Re: Excel Word SpeicherPfad
Zitat:
Zum Thema: Wird wohl gehen. Probier es doch einfach aus :gruebel: |
Re: Excel Word SpeicherPfad
Problem is es geht aber nicht oder ich finde keinen passenden command dazu !
thx CF |
Re: Excel Word SpeicherPfad
Also ich mach das immer so:
ExcelApplication.Open(const Filename: WideString; UpdateLinks: OleVariant; ReadOnly: OleVariant; Format: OleVariant; Password: OleVariant; WriteResPassword: OleVariant; IgnoreReadOnlyRecommended: OleVariant; Origin: OleVariant; Delimiter: OleVariant; Editable: OleVariant; Notify: OleVariant; Converter: OleVariant; AddToMru: OleVariant; Local: OleVariant; CorruptLoad: OleVariant; lcid: Integer): ExcelWorkbook; safecall; Das Open liefert dir dann das Workbook - Objekt zurück. Als erstes gibst Du Dein Verzeichnis und den Dateinamen an. Der letzte Parameter darf nicht 'EmptyParam' sein, sondern sollte: Mylcid := LOCALE_USER_DEFAULT; gesetzt werden. Hendrik |
Re: Excel Word SpeicherPfad
Delphi-Quellcode:
so sieht dass bei mir aus !ExcelApplication.Connect; ExcelApplication.Workbooks.Add(EmptyParam,0); ExcelApplication.Visible[1]:= true; // false wenn Excel unsichtbar sein soll ExcelApplication.UserControl:= true; // false wenn Excel unsichtbar sein soll ExcelApplication.DisplayAlerts[1]:= true; // bei Änderung Meldung anzeigen Speichern Ja Nein ExcelApplication.AskToUpdateLinks[1]:= true; // WordApplication.ChangeFileOpenDirectory(hauptVerz + '\Excel\' + DATEI); ExcelApplication.Disconnect; NUR die selbe struktur wie bei einem WordApplication geht nicht bei excel! Help me Please ! |
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:22 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