Using menu help button to open word document

I want to use the Help button on my menu to open a microsoft word document that has the user manual in it. Is there an easy way to call it from the public void jMenuHelpAbout_actionPerformed(ActionEvent e) method? Thanks.
Allyson

I put that code into my code like this:
try {
Runtime runner = Runtime.getRuntime();
Process process = runner.exec("S:\\Project Folders\\rades\\Task2\\FDC UM - Draft2.doc");
catch(Exception p) {
p.printStackTrace();
It compiled, but then give me these errors at runtime:
java.io.IOException: CreateProcess: S:\Project Folders\rades\Task2\FDC UM - Draft2.doc error=2
     at java.lang.Win32Process.create(Native Method)
     at java.lang.Win32Process.<init>(Win32Process.java:66)
     at java.lang.Runtime.execInternal(Native Method)
     at java.lang.Runtime.exec(Runtime.java:551)
     at java.lang.Runtime.exec(Runtime.java:418)
     at java.lang.Runtime.exec(Runtime.java:361)
     at java.lang.Runtime.exec(Runtime.java:325)
     at helloworld.HelloWorldFrame.jMenuHelpAbout_actionPerformed(HelloWorldFrame.java:123)
     at helloworld.HelloWorldFrame$2.actionPerformed(HelloWorldFrame.java:73)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
     at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
     at java.awt.Component.processMouseEvent(Component.java:3715)
     at java.awt.Component.processEvent(Component.java:3544)
     at java.awt.Container.processEvent(Container.java:1164)
     at java.awt.Component.dispatchEventImpl(Component.java:2593)
     at java.awt.Container.dispatchEventImpl(Container.java:1213)
     at java.awt.Component.dispatchEvent(Component.java:2497)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
     at java.awt.Container.dispatchEventImpl(Container.java:1200)
     at java.awt.Window.dispatchEventImpl(Window.java:914)
     at java.awt.Component.dispatchEvent(Component.java:2497)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Any idea on what they mean? Thanks.
Allyson

Similar Messages

  • How to open word document directly using ole2 and ole containers

    Hello
    i am using ole conatiners....in forms 6i. i want o open word document directly when i click a button....
    i have tried host....ole but word opens .....i want the document to open at once.....
    what should i use /set
    plz tell by host command and ole2 as well
    its urgent.....
    thanks

    Try this code, Hope this will work.
    declare
    item_name varchar2(80) := 'letter';
    item_id item;
    verb_index_str VARCHAR(20);
    verb_index PLS_INTEGER;
    verb_cnt_str VARCHAR(20);
    verb_cnt NUMBER;
    verb_name VARCHAR(20);
    loop_cntr NUMBER;
    begin
    item_id := Find_Item(item_name);
    IF Id_Null(item_id)THEN
              message('No such item: '||item_name);
    ELSE
    verb_cnt_str := Forms_OLE.Get_Verb_Count(item_id);
    verb_cnt := TO_NUMBER(verb_cnt_str);
    FOR loop_cntr in 1..verb_cnt LOOP
    verb_name := Forms_OLE.Get_Verb_Name(item_id,loop_cntr);
    -- message(verb_name);
    -- message(loop_cntr|| ' '||verb_name);
    IF verb_name = 'Open' or Verb_name = '?E?'THEN
    EXEC_VERB(item_id,verb_name);
    END IF;
         end loop;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('Error: '||TO_CHAR(SQLCODE)||' '||SQLERRM);
    RAISE FORM_TRIGGER_FAILURE;
    end;

  • Can't open word documents in Pages since updating to Yosemite

    Since updating my software to Yosemite I cannot open word documents in pages anymore. I can open these word documents in preview to at least look at them, but this is not very helpful.
    Also, is anyone else experiencing a serious slow down. My Macbook is choking, and I wonder if there is anything that can be done to improve the speed.
    Thanks in advance for any insight/ support you can offer!

    Be sure you are saving your Word documents on the PC for a Word version supported by Office 2004 X. The latest version of Office for the PC uses a file format that is no longer compatible with older versions of Office.
    PC attachments have icons that do not carry any information that Mac applications use to determine what application opens a document. Drag the document from the email application to the Desktop. Select the icon and press COMMAND-I to open the Get Info window. In the section labeled 'Open with' select Word from the drop down menu, then click on the Change All button. This should associate all similar documents to the Word application on the Mac. Word documents on the Mac also use the '.doc' extension. If the transferred file does not have the '.doc' extension then it doesn't hurt to add one.

  • I cannot simply open Word documents. I am forced to save them in order to view them.

    In firefox, IE, and chrome, I try to open Word documents and am forced to save them in order to view them. I do not get the box that asks whether I want to save or open (and yes, I have the option to always ask checked in my settings). When I find the document in my folders, it tells me I'm in protected view when viewing my documents. This has only started recently. The only thing new I've done to the computer recently is update firefox. However, this problem is occurring in all my browsers.
    (I do not have this problem opening other files, like PDF. I still get the option to open or save with files other than Word documents.)
    I have run my Sophos antivirus and have found nothing. I have suspected rookit, but hope it is less serious.
    I also do not wish to download any new programs in order to fix this problem.
    Thank you!

    Try upgrading to the most recent version of Firefox.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    Please report back soon.
    So you don't receive any popup window asking you to save or view the document? The download just begins all by itself.
    <b>NOTE: </b>Even if you select to only view the document, since Firefox has no built in Word viewer, you'll end up downloading it anyway. The only difference is that it will be downloaded into the temporary memory of your computer.

  • Can't open word documents in mail

    I've recently converted to Mac at my home, however i still use a PC at work. I have installed the latest version of office for mac, however when i try to use either mail or entourage i find that i cannot open attached word documents. For my work i constantly send word documents from my office to my home computer, however i cannot seem to open any of these files.
    I don't know if this means that i have a problem with the office i have just installed, my mail programs, or my general operating system?

    Be sure you are saving your Word documents on the PC for a Word version supported by Office 2004 X. The latest version of Office for the PC uses a file format that is no longer compatible with older versions of Office.
    PC attachments have icons that do not carry any information that Mac applications use to determine what application opens a document. Drag the document from the email application to the Desktop. Select the icon and press COMMAND-I to open the Get Info window. In the section labeled 'Open with' select Word from the drop down menu, then click on the Change All button. This should associate all similar documents to the Word application on the Mac. Word documents on the Mac also use the '.doc' extension. If the transferred file does not have the '.doc' extension then it doesn't hurt to add one.

  • HOW TO OPEN WORD DOCUMENT FROM JAVA???

    hi everyone! Can you please help me to come with this problem? Let me to set my main target I want to achieve:
    1) In my program user should first press a button;
    2) Then already created Word Document should be opened (I DO NOT NEED to open that Word Document in Java or something like JField). Just simply it should be opened as a Microsoft Word Document.
    I DO NEED YOUR HELP! PLEASE HELP ME....!

    Running cmd using the exec is also a windows only solution, there is no "more" or "less" it that solution compared to the rundll.
    Since word is a windows format its pretty obvious that the application is ran under windows platform.
    If you are running on a different platform (maybe using open office you can open word documents, i'm not sure) you might want to use the JDIC library (https://jdic.dev.java.net/) which enables you to open/edit/browse such files using the default viewer/editor/browser of the system you are working on.
    Look at the org.jdesktop.jdic.desktop.Desktop object for these methods.
    You can also find the Desktop object in J2SE6 but its still in beta.

  • HT1338 My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    Hi ...
    Checked to see how much free space there is on the startup disk lately?
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    Freeing Up Hard Disk Space - Mac GuidesFreeing Up Hard Disk Space - Mac Guides
    If disk space is not the issue, booting in Safe Mode deletes system caches that may help.
    A Safe Mode boot takes longer then a normal boot so be patient.
    Once you see the Desktop, click the Apple menu icon top left corner of the screen.
    From the drop down menu click Restart.
    See if that makes a difference ...

  • Got errors when trying to open word document with Office Web App Server and customized WOPI host

    I am configuring the Office Web App Server with our ASP.NET MVC WOPI host based on this example. https://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6. While both the OWA server and WOPI server has been set up and I can use Excel and PowerPoint
    app to open and edit xls and ppt file now, there are problems opening word documents no matter I enable or disable the editing function of OWA server.
    When I open a word document while enabling editing I got this error:
    If I disable editing I got this message:
    I have tried several file so I thought it is not the files' problem. Also I didn't find any exception in the log of OWA server. 

    Hi Gary Jiang,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing issues about
    apps for Office.
    Based on the description, it seems that you got an issue when you deploy the code sample. If I understood clearly, I suggest that you contact the author of the code sample from the "Q and A" tab.
    Also if you have the question about WOPI, I suggest that you get more effective response from
    Office
    Protocols forum.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • CALL_NOT_FLUSHED error while opening word document proxy

    Hello Gurus,
    We are using DMS application for uploading word documents in SAP system.
    We are using the following code to open a document from SAP database
    CALL METHOD CONTROL->GET_DOCUMENT_PROXY
    EXPORTING
    DOCUMENT_TYPE = '207'
    DOCUMENT_FORMAT = ''
    IMPORTING
    DOCUMENT_PROXY = PROXY
    RETCODE = RETCODE.
    IF RETCODE NE C_OI_ERRORS=>RET_OK.
    EXIT.
    ENDIF.
    CALL METHOD PROXY->OPEN_DOCUMENT
    EXPORTING
    DOCUMENT_URL = DOC_URL
    OPEN_INPLACE = 'X'
    open_readonly = 'X'
    protect_document = 'X'
    IMPORTING RETCODE = RETCODE.
    IF RETCODE NE C_OI_ERRORS=>RET_OK.
    EXIT.
    ENDIF.
    Above code open a document proxy and with help of macros we are changing some of the variables in the document.
    Problem is when we are trying to print this proxy with help of below code.
    CALL METHOD proxy->print_document
                      EXPORTING
                       NO_FLUSH    = ''
                        prompt_user = 'X'
                      IMPORTING
                        error       = error
                          retcode     = retcode  .
    In the above code if prompt_user parameter is passed then while execution a new window session is opened for printer selection but this methods gives an error as CONTROL_INTERNAL_ERROR. when i debugged it , it was giving error as CALL_NOT_FLUSHED.
    But when we are commenting prompt_user as below
    CALL METHOD proxy->print_document
                     EXPORTING
                       NO_FLUSH    = ''
                       prompt_user = 'X'
                      IMPORTING
                        error       = error
                          retcode     = retcode  .
    While execution printer selection window is open in the same window and nor error is passed by the method.
    And print comes.
    Kindly suggest how CALL_NOT_FLUSHED error can be eliminated.
    Thanks in Advance
    Sahadev Abhyankar

    Just try with below before printing & opening the document. Refer to the examples SAPREDIT*
                     Call Method cl_gui_cfw=>Flush
                        Exceptions
                          Others = 0.

  • Help - Can't open Word for Windows docs because of "Spelling Checker" error

    Since updating to the new Pages of iWork 08, I've started having consistent problems opening Word documents sent to me from Windows using colleagues. When I open the .doc in Pages, an error message appears saying "Alert: Couldn't contact Spell Checker." When I dismiss the error message, it immediately pops up again. It is impossible to dismiss the error message long enough to close the document or even to quit Pages, so I have to Force Quit Pages. Can anyone tell me how to fix this problem and be able to open Word documents in Pages again? Thanks!

    WordService is not a spell checker. It adds various actions to the Services menu, such as changing to smart quotes, changing to lowercase, etc. I've been using it successfully since Pages 1 came out.
    I suggest deleting/moving/archiving/something with that CocoAspell file & restart your Mac. It very welll could be the culprit. It's not the current version of these third-party spell checkers that are a problem. The problem seems to be left over bits after a spell checker is removed that is seen when you open a Word document, but the original program isn't found.

  • Setting Pages '08 as my default program to open word documents

    I need to figure out how to make Pages the default software for opening Word documents. Right now when I go to open them I have to move them from my email to my desktop and then open Pages and say open an existing document. Is there anyway to set it so that I can just click on the document and it automatically knows to open in Pages?
    Thanks

    Velmy,
    Welcome to Apple discussions.
    You can set .doc files to open in Pages, and it’'s surprisingly easy: just go to the Finder, single-click on any .doc file, then type command-I (Get Info). Click on the Open With... menu and select Pages (or navigate to Pages if it’’'s not in the menu). To make all .doc files open in Pages, click on the Change All button. Now, when you double-click on one of these files, it will open in Pages.
    -Dennis

  • Unable to Open Word Documents Since Mavericks 10.9.5 Update

    Since updating to Mavericks 10.9.5, I can no longer open Word documents that were created/edited between 8-27 and 9-18-14, and that I had opened 9-17 and earlier.  I receive the following message when I attempt to open a document:
    "Word cannot open this document.  The document might be in use, the document might not be a valid Word document,
    or the file name might contain invalid characters (for example, \ /)."
    I have Microsoft Word for Mac 2011, version 14.3.5., and a MacBook Air 1.8GHz, Intel Core i7, mid 2011.  Can you help?

    Anybody else experiencing this? No mention of effects on Quicktime in the 10.9.5 upgrade notes.
    Unable to duplicate your problem in random tests of my library. M4V (H.264/AAC/AC3/Chapter encoded) files continue to play normally in both QT 7 and QT X players. Anything special about your files or anything unusual happen during the system upgrade installation?

  • Credential Pop up while opening word document in SharePoint 2013

    Hi
    When I open office documents from SharePoint library, it is asking for credentials. Even if I put my credentials, pop up window will not go away. I have IE 11 and SharePoint 2013.
    I have put this site in trusted site zone. User Authentication  - Automatic logon with current user name and password.
    I have clicked on Remember my credentials. I can see my saved credentials in credential manager.
    The thing is, I was able to open word document without asking for password before. But recently, I have changed IE settings to be default level for some other reason, and since then it is asking me for credentials.
    I looked online so many articles, but nothing has helped me yet.
    Any help will be appreciated.
    Thanks

    Hi Cameron
    Thanks for your response. Yesterday night, when I tried to open documents from sharepoint site from my home, it didn't ask me for credentials. I was using same laptop which I used in the office.
    Again, today in the office, It started asking for credentials when I open office document.
    The only difference is internet connection is different between my home and the office.
    Not sure what could be the issue.
    Thanks

  • Cannot Open Word Documents on Desktop

    I cannot open word docs from desktop. We use Folder Redirection for the desktop and documents folders, but I don't have issues with excel or pdf files, and I'm able to open word documents from start menu.
     here is the error I'm getting servername\RedirectedFolders\"username"\Desktop\file.
    cannot be found. Check your spelling, or try a different path.
     

    Hi,
    Did this issue occur on all directed Word documents or some? Could you open the local Word document?
    Please make sure this file is indeed exists in that path.
    If it is, stop folder redirection, directly access the folder use UNC path for test.
    If it works fine, please redirect again to confirm the issue.
    Karen Hu
    TechNet Community Support

  • Opening Word documents with Appleworks

    I often receive Word documents as email attachments (though my hotmail account). I can download these Word documents to my desktop but when I click on them to open them I get an offer to purchase MS Word (which I do not have). I would like to be able to simply open the Word documents with Apple works--and I am hoping I can just click on them and have that happen automatically. But it doesn't. I have tried opening Appleworks and going into the wordprocessing program and then opening the Word document through that, but it only is successful part of the time. What can I do? I would like to have these Word douments open automatically in Appleworks but every time I click on them (i.e., their icon on my desktop) I get that advertisement from Microsoft asking me to buy Word. Is this ad blocking a normal function of Appleworks that would otherwise allow me to open Word documents with a click? And in any case, how can I proceed?

    The ad for Word is almost certainly being tacked on through or at Hotmail (taglines or adware from Hotmail? Hoodathunk .....) ; it sure isn't coming from AppleWorks or from anything on your own system, unless you have that demo copy of Office still lurking somewhere. I suppose it could come from that, somehow.
    Assuming you can get a clean attachment downloaded to your Desktop from Hotmail, the procedure for having what you want to happen automatically is fairly straightforward and, really, has nothing at all to do with Appleworks. Try the following:
    --> Select (highlight) one of those downloaded .doc files from Word, then
    --> use the Finder's Get Info command (⌘-I). In the window which appears,
    --> see the "Open with" section, and set it to AppleWorks.

Maybe you are looking for

  • Any FM available for partial payment for FB05 and F-36 transaction?

    Dear All, Is there any function module available that can post the partial payment for FB05 and F-36 transactions? Please let me know if any function module doing the same. I have searched in SDN but could not find any. Best wishes, Atanu

  • Changing DAAP Share Name

    Hello, After upgrading to iTunes 7.2 I can't seem to change the share name on my DAAP Share it has reverted to what my username is... on Both my windows and OSX machine. Was this intentional? If so I must say poor move by apple.

  • How do i change folder display options when I save a file?

    When I go save a file and select a folder to save it, the window shows all folders expanded. How do I change the options to all folders collapsing so that unless I click on that folder, it doesn't open automatically? This way it makes it easier for m

  • FAIled: Java for Mac OS X 10.6 Update 7

    I keep getting an "installation failed" message for this upgrade. I have tried updgrading from the "software updates" and by downloading the package separately from the apple. I have already installed the 10.6.8 supplemental update. I am doing this u

  • Issue with amazon and blackberr world

    Hi, I am facing issue with Amazon app store and with BlackBerry world.  I have a app : bookmyshow.  I have downloaded it from BlackBerry world, very long time ago. I got a update for same app in BlackBerry wolrd. I updated it and I found another and