sbbcarl has asked for the wisdom of the Perl Monks concerning the following question:
#Open up MS Word and only display the spellcheck box. my $Word = Win32::OLE->new('Word.Application', 'Quit'); $Word->{'Visible'} = 0; my $TmpDocument = $Word->Documents->Open($fileLocation) || die("Unable to open document ", Win32::OLE->LastError()); $TmpDocument->Activate; $TmpDocument->CheckSpelling; #Save the text file back to its original location $Word->ActiveDocument->SaveAs($fileLocation); $Word->Quit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Set Focus
by choroba (Cardinal) on Sep 19, 2013 at 16:20 UTC | |
|
Re: Set Focus
by SuicideJunkie (Vicar) on Sep 19, 2013 at 20:57 UTC |