Autor Beitrag
Dhakiyah
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 327
Erhaltene Danke: 5

Windows 7
Delphi XE2
BeitragVerfasst: Fr 12.03.10 11:04 
Hallo!
Leider weiß ich gar nicht wie ich sowas machen kann.
Ganz simples Beispiel würde mir reichen.
Ein OpenOffice Text Dokument wo eine Textmarke NAME drin steht.
Und ein Delphi Programm in dem im Edit-Feld SCHMIDT drin steht.
Wie mache ich das, dass Delphi den Namen Schmidt in die Textmarke Name schreibt?
Muss ich da noch was öffnen oder so?
Hab wirklich gar keine Ahnung...

_________________
Es ist soooo flauschig !!!
Sybok Factor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 50
Erhaltene Danke: 5

Win XP, Win Vista
Delphi 2010 Professional
BeitragVerfasst: Fr 12.03.10 12:32 
Hallo Dhakiyah,
ich habe leider nicht alles griffbereit. Aber wenn du das aktive OO-Dokument ermittelt hast, dann sollten dir die folgenden Zeilen helfen.
Im Übrigen falls du ein Buch zur OO Makro-Programmierung hast, kannst viele der Makrobefehle entsprechend anwenden.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
// vBookmarks, vBookmark, vMyCursor = als Variant deklariert
// vBookmarks = Liste der Bookmarks kann aus dem aktiven Dokument mit .getBookmarks ermittelt werden
vBookmark := vBookmarks.getByName('Name');
vMyCursor := vBookmark.Anchor.Text.createTextCursorByRange(vBookmark.Anchor);
vMyCursor.String := 'Schmidt';


Viele Grüße
Sybok Factor

_________________
Jetzte michse verstehen dein Problem.
Lemmy
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 792
Erhaltene Danke: 49

Windows 7 / 10; CentOS 7; LinuxMint
Delphi 7-XE10.1, VS 2015
BeitragVerfasst: Sa 13.03.10 16:41 
Hi,

kannst dir hier ein kleines Beispiel runter laden:

www.downloads.delphi...ojects/oo-export.zip

das sind ein paar Klassen, die dir den Einstieg erleichtern, die kannst Du direkt verwenden oder dir das notwendige Material da raus ziehen. Allerdings sind die schon älter, sollten aber grundsätzlich mit OO Version 3 funktionieren.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 23.03.10 18:23 
Zur Not: ODF ist eine ZIP mit mehreren XML-Files drinnen. Einfach die Dateien durchschauen (und den Standard lesen) und dann entsprechend das XML manipulieren.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.