Board index » delphi » CL - Word_TLB.pas

CL - Word_TLB.pas

I want Word to start maximized, so I use the following
syntax:

W:=Create.....
OleWindowState:=wdWindowStateMaximize;
W.WindowState:=OleWindowState;
W.Visible:=true;

But: Word does not maximize ???
What is wrong ? Who knows the ins and outs
of Word_tlb.pas and where can I find the help ?

--
Kees Lagendijk
--------------

visit http://www.casema.net/~kens/
for free components

"Messing things up is easy
   but to really create chaos
   you need a computer..."

 

Re:CL - Word_TLB.pas


<<Kees Lagendijk:
I want Word to start maximized, so I use the following
syntax:

 W:=Create.....
OleWindowState:=wdWindowStateMaximize;
W.WindowState:=OleWindowState;
W.Visible:=true;

But: Word does not maximize ???

Quote

This works fine for me.
  try
    Word := (GetActiveOLEObject('Word.Application') as _Application);
  except
    Word := CoApplication_.Create;
    OleWindowState := wdWindowStateMaximize;
    Word.WindowState := OleWindowState;
    Word.Visible := True;
  end;

Is there something else in your 'W:=Create.....' ?

Deborah Pate

Other Threads