I tried in word macro and then finally i done in perl intself. Thanks for the quick reply.
$MSWord = Win32::OLE->new('Word.Application', 'Quit') or die "Coul +d not load MS Word\n"; $wd=Win32::OLE::Const->Load($MSWord); $doc = $MSWord->Documents->Add(); my $range = $doc->{Content}; $range->{LanguageID}=2057; $range->{Text} ="$word"; eval {$range->InsertParagraphAfter();}; if($@) { print "Error occur for word :: $word in English UK Function In +sertParagraphAfter\n"; open er,"$0_Error_Log.txt"; print er "Error occur for word :: $word in English UK Function + InsertParagraphAfter\n"; close er; return; } my $suggestions = $range->GetSpellingSuggestions(); my $result_UK; my @suggestions_UK; my $offset = pos($word) - length($word) + 1; my $term = { term => $word, offset => $offset }; if ($suggestions || $suggestions->{Count}) { my @suggest; my @errors; foreach (in $suggestions) { push @suggest, $_->{Name}; } $term -> {type} = 'guess'; $term -> {guesses} = \@suggest; push @errors, $term; foreach my $word(@errors) { my $guesses = $word->{'guesses'}; @suggestions_UK = @$guesses; } } $doc->{Saved} = 1; $doc->Close(); $MSWord->Quit();

In reply to Re^4:I tried in word macro and then finally i done in perl intself. Thanks for the quick reply. How to get spelling suggestions in EnglishUK language as default in Win32::OLE by johnpeterdinesh
in thread How to get spelling suggestions in EnglishUK language as default in Win32::OLE by johnpeterdinesh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.