in reply to adding MS-Word templates using Win32::OLE

Hi, Easy try this

use Win32; use Win32::OLE; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Word'; use Constant 'True' => 1; use Constant 'False' => 0; $word=Win32::OLE->GetActiveObject('Word.Application'); $word->AddIns->Add ({FileName=>"D:\\sample.dot", Install=>"True"});

Regards,
Gubendran.L

Replies are listed 'Best First'.
Re^2: adding MS-Word templates using Win32::OLE
by cognizant (Pilgrim) on Feb 07, 2005 at 12:36 UTC
    Still, I am not getting it correctly.

      Hi, cogniziant while running this code please open the word and create first the template file and also be sure u having the ole module with u else contact me the further details through my inbox. Do it in above instruction given correct code. Download the module in CPAN and try. The above mentioned first given answer is exactly correct. I have tried and then only i posted it.

      Gubendran