 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
DI Konsult Guest
|
Posted: Sat Jan 15, 2005 9:57 am Post subject: Word.Basic |
|
|
Hi,
whats wrong and wy is Word starting twice when running this code.
var
Form1: TForm1;
MyWord:Variant;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
MyWord:=CreateOLEObject('Word.Basic');
MyWord.Shell('Winword');
MyWord.FileOpen('c:allan1001324B.doc');
end;
end.
A Winword process is started when CreateOleObject but I can't start Word.
If I omit "MyWord.Shell(...) nothing happens.
Please give me the correct code so I can start the Winword process created
when assigning MyWord and open the document.
Dag
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|