Open WINWORD or PowerPoint from cmdButton?

Hi,
I have a BC4J GUI that accesses various oracle DBFs.
I need to Open an existing PPT by clicking a menu item and open WINWORD from a button click. The following code is 2 different examples of what I have tried putting in the actionPerformed() for each item. The app compiles but when I click the button or menu item the cmd window opens and closes, but the PPT or WINWORD do nothing.
Can anyone who has done this offer a suggestion?
Thak You!
Ken
/* Open PowerPoint Presentation */
private void itemTrngPrsntAvl_actionPerformed(Action e) {
try
JOptionPane.showDialog(null, “Would you like to view the Training Presentation?”);
String [] cmds = {“C:\\WINDOWS\\system32\\cmd.exe”,
               â€œ/C”,
               â€œcd\”,
               â€œcd training”,
               â€œavail.ppt”};
Process proc = Runtime.getRuntime().exec(cmds);
catch (IOException i) {};
/* Open Blank Word Document */
private void saveButton_actionPerformed(Action e) {
try
JOptionPane.showDialog(null, “Would you like to open a WORD Document?”);
String [] cmds = {“C:\\WINDOWS\\system32\\cmd.exe”,
               â€œ/C”,
               â€œProgram Files\\Microsoft Office\\office\\WINWORD.EXE”};
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(cmds);
catch (IOException i) {};

Kenneth,
Are you trying to secure these documents? Setting the mime type in the browser should automatically open Powerpoint/winword from the browser if you download the appropriate filetype.
Am I missing your intent?

Similar Messages

  • Restoring Microsoft Powerpoint from a backup drive.

    Could somone help me? My mac recently ran into some problems... I backed it up via Time Machine then I used Disk Utility to restore it, finally, I re-installed OS X Mountain Lion off the internet using my Apple ID.
    Now, when I tried to manually drag 'PowerPoint' from the 'Applications' folder in the backup, whenever I open it gives an error message. What do I do? To re-buy Microsoft Office it would cost 120$!

    Why can't you reinstall your existing copy of Office, is it on Disk or a download.

  • I want to open ppt or pptx from the web save them as PDFs and take notes on the pdfs for school. All from the ipad, I don't want to have to go back to my computer to e-mail or convert it.

    I want to open ppt or pptx from the web, save them as PDFs, and take notes on the pdfs for school. All from the ipad, I don't want to have to go back to my computer to e-mail or convert it.

    Apple's iWork apps
    http://www.apple.com/iwork/
    3rd party Microsoft equivalent apps
    http://www.polarisoffice.com/en/iOS.asp
    http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
    http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
    http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
    http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1
    Others, including cloud based
    Microsoft Office Web Apps:These are versatile apps since they can be used on or off the cloud. Expect a simplified experience to the full version of Microsoft Office suite.
    OnLive: Access both a degree of Windows desktop functionality and full Windows versions of Microsoft Office Suite.
    CloudOn: This was one of the first solutions for iOS productivity. Syncing with Dropbox, CloudOn offers a more complete Windows desktop. The tradeoff is it also offers a more pared-down version of Word, Excel, and PowerPoint.
    rollApp: Offers Open Office programs for iOS, also utilizing Dropbox.
    LogMeIn: Remotely access your home computer's desktop from your iOS device. This solution requires coordination of logins, settings, and hookups. The free version does not offer file transfer, but you can get a separate, free app for that.
    Google Docs: Now featuring Google Drive for iOS, users no longer have to battle with pressing the Refresh periodically to initiate syncing. This makes collaboration much smoother, resulting in a stronger office productivity product.

  • Not enough memory message when opening excel and powerpoint

    I am running Mac OS X version 10.5.8. I installed Microsoft Office 2008 for Mac about a year ago and was running it without any trouble until about 3 months ago. I can still open Word, but receive a 'not enough memory' message when I try to open Excel or Powerpoint. Has anyone else encountered this problem and does anyone know how to fix it? Thanks

    Yes I have and I think that's when the problem occurred. I've just read another post from someone who was having the same problem. Apparently the solution is just to keep hitting the escape button every time the error message pops up and eventually the application opens! Not very high tech, but I'll give it a go and let you know how I get on.

  • Always open *.pps with PowerPoint

    I received an email with a *.pps attachment (i.e., a PowerPoint attachment). The tool tip says Mime-type:application/vnd.ms-powerpoint. However, when I double click the icon, I get the cannot find an application error message. So I navigate thru the choose application menu trail and select PowerPoint. Then when I try to open that same icon again I still get the cannot find an application error message. Is there way to force Mail to remember to always open *.pps attachments with PowerPoint?

    hi there--
    try exporting the attachment to the desktop. then click just once on the file to highlight it and then press apple and i on the keyboard. from here, go down to the "open with" section in the middle of the information window. select other if powerpoint is not available, then specify powerpoint in the new window that comes up. you can select to always open this by checking the box, and then make sure back in the information window, you click the "change all" button. this will tell all powerpoint documents to open with the powerpoint application. [ 8 ) ]

  • Is there a way to open a new window from the "Go" menu in Mavericks?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?

    Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
    Now I have to manually open a new window to avoid loosing my existing window.
    Is there a way to open a new window from the "Go" menu?
    First, as others have already stated.....make sure the checkbox is deselected for "open folders in tabs instead of windows" in Finder Preferences.
    If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple click (I'm using Mavericks 10.9.5).  Go to a root folder (for example, the Documents Folder), open it, and select View > Hide Toolbar, then all folders within that root folder will open in a new window.
    As an alternative method, any folder can be opened in a new window by holding down either Command Key while clicking the folder. But sooner or later you will forget to hold down that key, and then clicking on a folder will open in a tab (which will automatically resize the window and cause much aggravation).
    The Hide Toolbar trick will also work with any folder present on the Desktop. It will make all folders inside that folder open in new windows.
    To make the Applications Folder open in a new window when opening it from the menu bar at the top of the screen, you will have to open the main hard drive folder and use the Hide Toolbar trick. This will cause all folders inside it to open in new windows.
    Hope this helps.

  • When I open a pdf document from my dropbox to view it, the document shows up blank, even though it is filled out. This also happened with pdf documents that have been e-mailed to me.

    When I open a pdf document from my dropbox to view it, the document appears blank, even though I know the information is actually there. This also has happened with pdf documents that have been e-mailed to me, then opened to view and they are blank?? Why are they showing up blank?

    When I open emails with PDFs I click on the attachment (doing this all on my iPad) it gives me the option to "open in iBooks", I accept then after that the document is sucked into my iPad but I can't do anything with the PDF after that.  Where is the actual file on my iPad? Why can't I email or send these PDFs to my cloud (Dropbox)?
    It's like once they go into iBooks they're stuck forever.

  • I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Liv

    I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure. " when I sign in again there is no change. in English
    == URL of affected sites ==
    http://http://sn135w.snt135.mail.live.com/default.aspx?n=2087215863
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    See http://kb.mozillazine.org/Clearing_the_cache and http://kb.mozillazine.org/Cookies

  • HT3775 BDMV" can't be opened because it is from an unidentified developer.  How do I solve this?? Am I losing all the video files I have in my camcorder??? Please help me!!! Thanks

    I am downloading the memory card from my camcorder into my MacBook Pro with Retina display. It usually popped to the file called AVCHD then CLIP to show all the videos. But not this time, it automatically changed to BDMV. I do not have idea how this happened while I left my notebook on and I was away for a couple of hours then back to the living room to work on each video as to type name of file etc.
    Now, I cannot even open them into CLIP because I am still getting BDMV with a popped sign that said BDMV can't be opened because it is from an unidentified developer. (I do not even understand what this is supposed to mean??) also with the bottom message that stated "Quicktime Player created this file yesterday at 1:52pm"  I am like uhhh how can QT player do this without my authorization??
    Please help me how to solve these and get all of my videos back that I saved in my camcorder.  Let you know that I tried to insert the memory card back into my camcorder and all these videos are gone.   Now I am having a HUGE headache because of this!!
    What should I do now???

    HI,
    Did you ever figure out how to get them back? The same thing happened to me yesterday. I was able to open the file in VLC media player (you can download this app), but the file had been corrupted. It was only the last clip I had recorded, all the others were lost. Even the clip that will play is messed up

  • When i open an mp3 file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?

    when I open a music file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?

    If you use iTunes' default settings then when you add a file to iTunes it places a copy of the file in the iTunes media folder and it leaves the original in place.  The exception is when you drag it to the Automatically Add To iTunes folder.
    It does not convert the file.  You can delete the original if you wish.

  • Unable to open large PDF file from the Attachment list.

    Hi Gurus,
    Users had attached 10 PDF file in the work order attachment list and his supervisor is trying to open the PDF file from the work order attachment list and he is able to open 9 PDF files without any issue, but 1 PDF file is giving the error message as "Database error for <GET DATA FROM KPRO>" and then select ok, we are getting the below message.
    Window cannot find u201CC/Documents and Settings/b2m/SaoworkDir/5015851 Vendor data sheets B&P 2010 SDown XXX .PDFu2019. Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click serch.
    Looks like this particular file is not transferring to the SAP work directory.
    Could you please check and suggest us as to how to fix it.
    Thanks & Regards,
    Srivas

    Hi,
    Thanks for your reply.
    We verified  your OSS notes it's not relevant to us Because our issue is while opening the PDF aatchement it is not transferring to my SAP Work Directory because of that reason we are getting the KPRO error. When I'm opening the other PDF files it's transferring to my SAP Work Directory and it's automatically open without any issue.
    Please check and suggest.
    Thanks,
    Srivas

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • I attempt to open a second window from the icon but it does not open then when firefox is closed it will not reopen because it is still running in processes but no window displayed until you kill the process and then restart firefox.

    I attempted to open a new window from the Firefox icon but nothing happens. I then went on browsing and closed Firefox but was later unable to open it. I checked processes and it was already running but there was no window displayed. I am running Windows 7 Professional.
    This is repeated any time I already have the browser open and wish to open a second instance.

    '''<u>Open a second window (not a second tab, that is different) when Firefox is already running and displayed on the monitor</u>'''
    *Firefox button > New Tab > New Window
    *CTRL+N
    *'''''If using the Menu Bar''''': File > New Window
    **To '''''temporarily''''' display and make choices from the Menu Bar press the ALT key or the F10 key
    **Also see: https://support.mozilla.com/en-US/kb/Menu%20bar%20is%20missing
    '''<u>Firefox "hang on exit"</u>'''
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Open file in excel from labview

    I need a way to open an existing Excel file, that may or may not be open already.  I am using the attached "Open Specific WorkBook.vi" from the examples.  My LabVIEW program must be able to either open a specifc Excel workbook and worksheet even if it is already open.  Is this even possible, or would it be better to close it (if open), the open it again?
    Attachments:
    Open Specific WorkBook.vi ‏37 KB

    As you probably know, nothing "bad" happens when you open Excel if it's already open, it just doesn't come to the front of your LabVIIEW ap. To get it to the front, Minimize the Excel window then immediately Maximize it (or Normalize it) programmatically with a PN.  I have tried many of the other methods (but not all of them) to no avail, this works for me. There may be a more elegant solution.
    There are other known methods to bring an ap to the front, with callbacks etc, but they can be clunky, or require Userlib32, etc. Since this property node already exists in your ap, it's comes at little expense.
    Of course, you may want to check that the ap was open before you do this, but even that is optional, at the expense of a little flashing on the screen.
    Richard
    Attachments:
    windowState.gif ‏4 KB

  • How to get the Open Order Qty value from Transaction Code RWBE?

    Hello,
    Recently I have a program that needs to extract the value of Open Order Qty value from RWBE.
    My specific steps are as follows:
    - I go to tcode <b>RWBE</b>
    - I select the <b>material and plant</b>
    - I tick the checbox for <b>"Also select special stocks"</b> and <b>"Also select stock commitments"</b>
    - I execute the program double click one of the rows for the <b>Unrestricted Use coulmn</b> and view the <b>Open Order Qty</b>.
    My question is how is this particlar variable attained? I tried Ekbe and the ELIKZ feild from EKPO and I still cant seem to get the right value.
    Hope to hear from you soon.
    Thank you and good day.

    check with FM :
    CALL FUNCTION 'MB_ADD_PURCHASE_ORDER_QUANTITY'
           EXPORTING
              x_matnr = t_matnr-matnr         " TGA/4.6 Erw. Lot
              x_meins = t_matnr-basme         " TGA/4.6 Erw. Lot
                x_matnr = prt_matnr-matnr  " TGA/4.6 Erw. Lot
                x_meins = prt_matnr-basme  " TGA/4.6 Erw. Lot
                x_elikz = space
                x_loekz = space
           TABLES
                xtab    = xtab
                xwerks  = r_werks.
    above fm will get open order qty for given material in po

Maybe you are looking for

  • Pension plan deduction

    Dear friends, The pension record (IT0169) is delimited for an employee within a pay period. Still pension is deducting for the entire period. The employee is going to be separated from company.Due to settlement employee has active status till end of

  • Memup hard disc does not show in Finder

    I have attached a Memup 250GB hard disk by USB to my MBP. The disk does not show up in Finder, nor in Disk Utility. The disk works fine if I plug it into a PC. I have formatted it on the PC to FAT. Any suggestions on how I can get it to work on my MB

  • Asset and sub number

    Dear all , i have 1000 chairs , i dont want to create 1000 asset as main asset. Can i have one main asset as CHAIR and 1000 chairs as sub asset ? how to create the same. and also what is super asset?

  • Why does my 8250 pixma printer randomly show up as "not connected"?? using BT wifi homehub router with my retina pro (mountain lion)

    am getting fed up with having to reboot router and or printer everytime I want to print!! printer clearly is connected as it shows up in the system but only by rebooting everything will it start up and print beleive it might be firewall related ?? an

  • Blackberry Curve 8520 won't start

    Hello I have an issue with my blackberry . After upgrading my facebook application , and rebooted , once i see the home screen , i get an error , and the device reboots . I can't get to the options and hard reset because it doesn't let me . Is like a