Invoke check spelling word from Webutil Package

Hi,
I would like to check spell a long item from my form with MS Word.
I found an example on OTN to open word from my form with webutil.
Now I would like to Spell check the active document in Word with the method
ActiveDocument.CheckSpelling();
Select the complete text:
Selection.WholeStory();
Copy it in the buffer:
Selection.Copy();
Close document:
ActiveDocument.Close(0);
Close Word:
Quit();
I search the correct syntax from the the package CLIENT_OLE2 ?

Eric,
I hope the following code sample helps you.
Regards
Kavitha Prakash
Oracle Support
DECLARE
MyApplication client_ole2.OBJ_TYPE;
MyDocuments client_ole2.OBJ_TYPE;
MyDocument client_ole2.OBJ_TYPE;
MySelection client_ole2.OBJ_TYPE;
args client_ole2.LIST_TYPE;
BEGIN
MyApplication:=client_ole2.CREATE_OBJ('Word.Application');
client_ole2.SET_PROPERTY(MyApplication, 'Visible', 1);
MyDocuments:=client_ole2.GET_OBJ_PROPERTY(MyApplication, 'Documents');
args:=client_ole2.CREATE_ARGLIST;
client_ole2.ADD_ARG(args, 'c:\ABSTRACT.DOC');
Mydocument :=client_ole2.INVOKE_OBJ(MyDocuments,'Open',args);
client_ole2.DESTROY_ARGLIST(args);
client_ole2.INVOKE(MyDocument,'CheckSpelling');
MySelection:=client_ole2.GET_OBJ_PROPERTY(MyApplication, 'Selection');
client_ole2.INVOKE(mYSelection,'WholeStory');
client_ole2.INVOKE(MYSelection,'Copy');
client_ole2.INVOKE(MyDocument,'Close');
client_ole2.INVOKE(MyApplication,'Quit');
client_ole2.RELEASE_OBJ(MySelection);
client_ole2.RELEASE_OBJ(MyDocument);
client_ole2.RELEASE_OBJ(MyDocuments);
client_ole2.RELEASE_OBJ(MyApplication);
end;

Similar Messages

  • I want to remove an incorrectly spelled word from my spell check dictionary (--a word that I added to the dictionary).

    While writing an e-mail, I added the name of a place to my spell check dictionary. Moments later, I realized that I had misspelled that place name. Now I want to remove the incorrectly spelled name. Is there a simple solution?

    See http://kb.mozillazine.org/Deleting_spellcheck_entries

  • I unchecked "Check spelling as you type" but Firefox still underlines words in cut-and-pasted text in some web apps. How can I stop it from doing this?

    I'm using an online web mapping application that has input boxes for descriptive text and stuff like that. Sometimes I copy blocks of text from a word processing app into these input boxes because I can format the text in the wp. When I paste the text blocks, Firefox does the wiggly red underline on words it doesn't know. I've already turned off "check spelling as you type" but this doesn't make a difference. I don't want Firefox to check spelling on these text blocks that I copy and paste. Sometimes I need to capture screen images of these text blocks in the mapping application and I want them to look clean. Thanks.

    Does "Check Spelling" in the right-click context menu has a tick when this happens?
    You can consider to disable the spell check underline by setting the ui.SpellCheckerUnderlineStyle pref to 0 (zero) on the <b>about:config</b> page.
    *http://kb.mozillazine.org/ui.SpellCheckerUnderlineStyle

  • How do i remove a word from spell check in OS X 10.4?

    Hi all, I accidentally added a misspelled word to the spell check dictionary and i was wondering how to remove it.
    I noticed there were already a few similar questions, but i could not get their solutions to work, as they were obviously using a new version of OS X.
    So does anyone know how to remove a word from from spell check in OS x 10.4? or else how to reset the spell check?
    Cheers.

    OK, if you are talking about the Apple spell checker, do the following:
    Open an application like TextEdit.  Right click in the application window and you will get a popup.  Select Spelling and then Spelling... to get a Spelling Dialog Box.
    Type in the mis-spelled word in the text box and then click the Forget button.  That should undo the mischief.

  • Check spelling with foreign words

    I am using InDesign CS4 to create documents which mix foreign words and phrases in standard US English. The problem is that when I use Check Spelling, it flags as misspelled many properly-spelled non-English words.
    When these suspect words have accents, clicking the Ignore All or Add buttons does absolutely nothing. Every instance of the accented suspect word is flagged throughout the document.
    Is there some simple way for me to add accented words to my user dictionary? I've read the Adobe Help doc for Check Spelling and it's no help whatsoever.

    Why the heck I can't just Ignore All or Add an accented word to my user dictionary with a single click is beyond me.
    I would guess that it's because the folks who are in charge of adding features to InDesign didn't figure that anyone was going to need a one-click way to do this. As a language-industry pro I am somewhat horrified that you overtly want to pollute your dictionary with words from multiple languages... but hey, this is your project and your working environment, so it's your call. That being said, I can think of a few potential workarounds:
    1) Adding a keyboard shortcut for Edit -> Spelling -> User Dictionary.  That way, once your word is highlighted, you only need to enter two keystrokes - one for your shortcut, then Enter to add the highlighted word.
    2) If you were to upgrade to a later version of InDesign, you might be able to use Adobe Configurator to create a custom panel that would have a single button to add a word to a user dictionary. Unfortunately, it seems that it's not available for CS4.
    3) Put in a feature request, and wait.

  • The Firefox spell checker has the option for me to add custom words to the dicionary. Please tell me how to delete a word from this file of custom words because a mispelled word got in there by mistake.

    I want to know how to delete words from the custom dictionary in the spell checker that I put there by mistake.

    In your profile directory, the file is '''persdict.dat''' and you should know how to get to your profile. One way is to enter '''about:support''' in the location bar then click on "Open Containing Folder". Or go through the Help menu > Troubleshooting Information > ...
    You can edit with wordpad, or notepad++, but not with notepad,
    because there is one word per line and you will not see that in notepad after Firefox has updated it.&nbsp; Update after closing Firefox.
    I will have to change my Spell Check documentation to not suggest notepad
    :http://dmcritchie.mvps.org/firefox/tab_capacity/001_with_underscore.htm#spellcheck

  • How do i remove a stadard word from a spell check dictionary?

    even thought its a real word and spelled correctly i want to be highlighted if i type it.
    I'm using the standard English(united states) dictionary.
    i also have low technical skill.
    i meant to type "dog" but i actually typed "dong" and it lead to some embarrassment , i want it to remove it as a standard word from my spellchecker , Ive got a few I'm thinking of removing , as a just in case kind of thing.
    Thanks guys

    Yes, editing that file works. Because the line breaks are not traditional DOS line breaks, you should not use Notepad as your editor. Instead, try this:
    (1) With Firefox closed, open the Start menu to All Programs > Accessories
    (2) Right-click Wordpad and choose Run as Administrator, give yourself permission when prompted by Windows
    (3) Navigate Wordpad's Open dialog to C:\Program Files (x86)\Mozilla Firefox\dictionaries and change the file type to all files (or type *.* in the box and press Enter) so you can open en-US.dict
    (4) Search in the page (Ctrl+f) for dong/ (it's not the first one) then add XYZ between dong and /
    ''The reason for this is so you can easily find and undo your changes by searching for XYZ/ or globally replacing that back to / if needed.''
    (5) Save and then restart Firefox. If spellcheck seems to work correctly, you can close Wordpad. If not, you might want to undo your changes in Wordpad (you might or might not be able to save that with Firefox open).

  • Check spelling before sending an email, strange words

    I have the default set to check spelling before sending an email, sometimes I get all kind of strange words that are not in my email show up as spelling errors. What do I need to change to correct this problem

    Any examples of the words?
    Are you replying to or forwarding messages created by users of Outlook or other Microsoft email products? Their messages are full of bloated Office-based non-standard coding that Thunderbird's spell checker struggles (and fails) to understand.
    Fundamentally, if you can't see the text that the spell checker is complaining about, it almost certainly doesn't matter.
    Next time you get a message that does this, go back to the original message, select it and use ctrl+u to see its source. You may be surprised at the sheer bulk of invisible and largely useless code in the message sent to you,
    Such as:
    <code>
    &lt;html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
    osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
    xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
    //www.w3.org/TR/REC-html40"&gt;
    &lt;head&gt;
    &lt;meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
    252"&gt;
    &lt;meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)"&gt;
    &lt;!--[if !mso]&gt;&lt;style&gt;v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    &lt;/style&gt;&lt;![endif]--&gt;&lt;style&gt;&lt;!--
    /* Font Definitions */
    @font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;}
    @font-face
    {font-family:Tahoma;
    panose-1:2 11 6 4 3 5 4 4 2 4;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0cm;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-fareast-language:EN-US;}
    a:link, span.MsoHyperlink
    {mso-style-priority:99;
    color:blue;
    text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
    {mso-style-priority:99;
    color:purple;
    text-decoration:underline;}
    p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
    {mso-style-priority:99;
    mso-style-link:"Balloon Text Char";
    margin:0cm;
    margin-bottom:.0001pt;
    font-size:8.0pt;
    font-family:"Tahoma","sans-serif";
    mso-fareast-language:EN-US;}
    span.EmailStyle17
    {mso-style-type:personal-compose;
    font-family:"Calibri","sans-serif";
    color:windowtext;}
    span.BalloonTextChar
    {mso-style-name:"Balloon Text Char";
    mso-style-priority:99;
    mso-style-link:"Balloon Text";
    font-family:"Tahoma","sans-serif";}
    .MsoChpDefault
    {mso-style-type:export-only;
    font-family:"Calibri","sans-serif";
    mso-fareast-language:EN-US;}
    @page WordSection1
    {size:612.0pt 792.0pt;
    margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.WordSection1
    {page:WordSection1;}
    --&gt;&lt;/style&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
    &lt;o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /&gt;
    &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
    &lt;o:shapelayout v:ext=3D"edit"&gt;
    &lt;o:idmap v:ext=3D"edit" data=3D"1" /&gt;
    &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
    &gt;/head&gt;
    </code>
    …and that's just the header.

  • How can I set check spelling to catch words with numbers in them?

    I sometimes inadvertently type a number in the middle of a word, e.g., "typ9o," but the spell-check feature never catches them. Can I change a setting to get spell-check to catch these kinds of words?

    Hi, Again,
    Thanks for the info. And for a quick reply. ;-)
    I checked my current cop0y of LibreOffice (I replaced OpenOffice.org with it several months ago). LibreOffice uses Hunspell as well. I had not checked the boxes to check words with numbers or all-caps as I had previously done in OpenOffice.org, so for all this time I have been thinking it would flag errors in those when it wasn't. Must have made LOTS of mistakes I didn't catch in that time. ;-(
    In LibreOffice, go to Tools => Options => Languages => Writing Aids. You can choose to enable spelling and grammar checking (not sure what the grammar checker oes, since it was already enabled but I have never seen any evidence of it). The below that is a section of checkboxes where you can specify what is and is not flagged by the spell checker. I checked the words with numbers and capital letters choices. So now it will catch all the acronyms I haven't added to the spell checker dictionary.
    I was looking for the same sort of choice in Firefox but didn't see it. Perhaps there is an API in Hnnspell the Firefox developers can use to add this choice as a checkbox, the way it is in LibreOffice.
    I realize this may be perceived as a low priority, but I would certainly appreciate seeing it in a future update of Firefox. At least making this post helped me get the settings i wanted in my word processor.
    Take care and God bless.
    Don :)

  • Invoking Microsoft Word from Java code

    I want to invoke Microsoft word from Java code. How can i do this plz ............... Help

    do something along these lines.... here is an example with notepad
    create a .bat file with the commmand in to run notepad for example
    notpad c:\test.txtthis command calls notepad and passes it the argument C:\test.txt which is the file and it's location, that I want to open.
    The Java program
    import java.util.*;
    import java.io.*;
    public class Run
    public static void main(String args[])
        try
           //the name of the batch file with your commands in
           String command ="runprog.bat";
           //get the runtime 
           Runtime rt  = Runtime.getRuntime();
           //run the bat file  
           Process proc = rt.exec(command);
          //wait for the program to exit i.e notepad then get the return code
          int exitVal = proc.waitFor();
          //print out the exit value
          System.out.println(2THe Process exit value is: " + exitVal);
      catch(Throwable t)
         t.printStackTrace();
    }have a look at this
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    and this
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps_p.html

  • Excluding VBA codes from grammar & Spell checker in word 2013

    hi Guys
    i am learning VBA & i write my notes & my exercises in a word document.
    the problem is Grammar & spell checker shows VBA codes as errors.
    i don't want to completely disable checker. is there any method or Add-on so that we introduce Correct VBA codes as correct sentences to word 2013 so that it doesn't show them as errors ?
    thanks in advanced

    i tested it but i noticed an strange behavior. it sometimes works but sometime doesn't. or sometime partially works.
    for example i have defined a box as a border around the selected Area. this applies but although i have selected "do not check spelling or grammar" , system again shows spelling & grammar errors as you see in the screenshot. it's seen even
    after i reapply style. any further help please?
    Your screenshots have far too little resolution to see anything meaningful. I cannot see what Style you're applying the attributes to, or how you're using that Style. If you're applying the Style to text that's already in the document, you may need to run the
    spell-checker to clear the 'error' underlining that was already there.
    Cheers
    Paul Edstein
    [MS MVP - Word]
    i have created the "NOGrammarSpellCheck" Style correctly.
    yes i had written some VBA codes in my doc, then i created my "NoGrammarCheck" Style & Applied it on the selected Exiting codes. but again errors are shown. i noticed that when i again click on my style to apply, know errors disappear.
    so i found that if codes exit before, we must apply the
    "NoGrammarCheck" Style Twice so that it completely be applied.
    but if we Apply the style on a blank area in word doc & then paste our VBA codes in that Area, now everything is ok & no grammar or spell check is shown.
    am i correct ?

  • IOS 7 'Check Spelling' red underlining disappears even if the word isn't corrected

    In previous versions of iOS if a user misspelled a word and 'check spelling' was enabled in the settings menu, the misspelled word would be underlined in red and remain underlined in red until it was corrected or the message was sent.  It appears that in iOS 7 the message editor will underline it in red initially and then it disappears once you start typing the next word.  Is this a known issue?

    Stollerd, I am experiencing same issue and I just spoke to Apple. They did not seem to have known about it, but now they do. They did read this thread and other threads while I had them on the phone. They did not have any solution at this time, but I asked them to make sure that the problem is recorded and escalated.
    Just for the info: if they ask you to do some troubleshooting steps on your phone when you call in to report this issue - there is no reason to do that, because there is nothing that is wrong with your phone; the problem lies within the iOS7 and not your phone. I have access to many brand new phone units and I did some testing; no reason for you to repeat the same. If they want to try something out, they can do it with their own phones and find out the results.

  • Foxfire Spell Check Stuck Red underline under all correctly spelled words

    #
    Foxfire Spell Check Stuck Red underline under all correctly spelled words edit
    # Details

    You can see which dictionary is selected if you right-click in a text area and open the Languages submenu.<br />
    Also make sure that [X]"Check Spelling" in the right-click context menu has a tick.<br />
    You can also try to toggle the "Check Spelling" item off and on again.<br />
    See http://kb.mozillazine.org/Spell_checking and [[Using the spell checker]]<br />
    See also http://kb.mozillazine.org/Dictionaries

  • Spell Check Marks Correctly Spelled Words

    Does anyone have this problem on their iPad? I'm getting correctly spelled words marked with red underline as misspelled. For example I have had the word "that" marked as misspelled. When I click on the word "that", it does not give me an option for the word. I could go on with several examples of common words that are spelled correctly, but the iPad is marking them as misspelled.

    Thanks! I'll check this out.
    And yes that seems to be the problem. The international button is a toggle that goes through all languages set up on your iPad. I have English, Russian, and Spanish. It seems that I have accidentally toggled to Russian and then when I toggled agin, it went to Spanish, which I thought was English.
    So the next question I have is if I have the Spanish keyboard on, does it spell check in Spanish?

  • Spellcheck checking correctly spelled words

    Before sending an email spellcheck is checking almost every word even though they are spelled correctly?  Anyone ever had this problem? tried a hard reboot and still no luck.  Any help would be appreciated.
    Thanks
    Solved!
    Go to Solution.

    Repeat:
    What is an example of say three correctly spelled words that is it checking
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Application not working after deployment in remote server

    I have a standard web application working in my localhost. But when I deploy the same in a remote server it gives the following exception. This happens for all the jsp:useBean. why is the container not able to fund the Beans. The Tomcat is installed

  • How do you subscribe with iTunes to a podcast not listed in iTunes store?

    It's listed with Podcast Alley, and I'd like to have it automatically download in iTunes, feed my ipod, etc etc, all the organization stuff we love about Apple etc. But I can't findinstructions for how to add it to my list of iTunes podcasts and subs

  • Calling method validator from EO to another EO

    Hi, I am usning JDEV 11.1.16.0 I have two EOs Person and PersonJob there is an association created PersonEOTOPersonJob In my PersonJobEO I have a method validator which calls a method in my PersonJobEOImpl.java where i am doing some validation. Now t

  • TextEdit Default Font/Background Color

    I'm hoping to set TextEdit to have all new plain text documents open with a specific font and background color.  When I make changes in the New Document tab of the application's preferences, clicking the "Change-" button by "Plain text font" allows m

  • Import text to speech script

    Hi, I am using Adobe Captivate4. I would like to know whether is there any provision of importing the text as speech script and then convert to speech to add audio to the slide?