Example in HELP does not work for me...

 I am VERY new to BCB.  I am trying to compile an example from HELP.  I
want to control MSWORD.  Here is the code from HELP:

void __fastcall TForm1::Button1Click(TObject *Sender)

{
  if (OpenDialog1->Execute())
  {
    TVariant FileName = OpenDialog1->FileName.c_str();
    WordApplication1->Documents.Open(FileName,
      TNoParam,TNoParam,TNoParam,
      TNoParam,TNoParam,TNoParam,
      TNoParam,TNoParam,TNoParam);
  }

Quote
}

There does not seem to be an Open() method in Documents property.  What
am I doing wrong?

--
__
Robert H. "Corky" Oujesky MCSD
roujeskyATmylinuxisp.com
_

Sent via Deja.com http://www.deja.com/
Before you buy.