Good People-

It would be a great kindness if someone could help me fix the last line of
the following snippet. I've read 100's of pages of archives for this and
other lists and all available doc files (including FAQ12). This problem has
come up from time to time but I have not yet found a usage of TypeText that
works. (Though I could supply an exhaustive list of error messages from many
creative attempts.)

BTW: the documented examples inserting text into Excel work like a charm.

This fails with Type Mismatch for Perl 5.005 and 5.6.0 with Word97:

----------------------------------------------------

use Win32::OLE;
use Win32::OLE::Const 'Microsoft Word';

$word = Win32::OLE->new('Word.Application');
$word->{Visible} = 1;                      # Works
$word->Documents->Add;                     # Works
$word->Selection->TypeText("Hello world"); # Doesn't

----------------------------------------------------

Thanks,
dv


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to