So servus,
hab folgendes Problem :
Ich will mit TCL auf ein Word File zugreifen, es öffnen, was reinschreiben und es wieder schließen... Öffnen.. kein Problem, Speichern und schließen... Kein Problem... aber ich hab keinen Plan wie ich in das File reinschreiben kann...
Arbeite mit Hilfe von tcom!
Hier mal n Stück Quellcode :
#tcom packet wird benötigt
load tcom.dll
proc worddrucken {} {
set wordapplication [::tcom::ref createobject "Word.Application"]
$wordapplication Visible 0
set docs [$wordapplication Documents]
set doc [$docs Open "c:/StammNummernSuche.doc" [::tcom::na] [expr 0]]
#hier muss Text rein : D
#
#
$docs Save
#doc PrintOut [expr 1] [::tcom::na]
$wordapplication Quit
}
Hoffe mir kann jmd. helfen.
Vielen Dank im Voraus.
Ten13