| |
|
|
 Christof Neuß | Ciao,
ich verzweifle hier bald. Hab mal wieder mächtig Zeitdruck und komme nicht voran.
Ich möchte nur aus meinem Programm einen Excel-Anwendung starten. Excel ist installiert. Wenn ich auf die Anwendung doppelklicke geht sie auch auf, aber alle Versuche mit
WinExec(e:ErfassungsprogrammProFiDat.xls,3) WinExec(e:\Erfassungsprogramm\ProFiDat.xls,3)
Run(e:ErfassungsprogrammProFiDat.xls) Run(e:\Erfassungsprogramm\ProFiDat.xls)
usw. funktionieren nicht. Auch nicht mit SHELL. Es geht gar nix. Profan-Programm corre einfach weiter, als ob dieser Befehl gar nicht vorhanden wäre. Keine Fehlermeldung, nix.
HILFE!!!
Danke und Saluto |
|
|
| |
|
|
|
 RGH | Ciao, mit WinExec, WinExecWait, Run und Shell kannst Du nur eine ausführbare Programm-File starten, in der Regel also eine EXE-File. (Andere ausführbare Dateitypen sind Batchdateien, Bildschirmschoner, etc.) Was Du aber machen willst, ist das mit einem Dateityp verknüpfte Programm zu starten Hierfür ist die Funktion ShellExec gedacht!
Saluto Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 27.02.2008 ▲ |
|
|
|
|
 Christof Neuß | Mann, wer lesen kann ist klar im Vorteil!
Danke Roland, es funktioniert. Die Nacht ist gerettet.
Kann ich als Hintergrund im Programmfenster auch ein Bild Mostra lassen? |
|
|
| |
|
|
|
 | Sicher, aber das ist hier nicht das Thema. |
|
|
| |
|
|