Launch Internet Explorer using button click

Hello friends
I want that on click of a button Internet Explorer opens with an html file. Actually the file which opens is a report which I want to show to the user.
Please help me in doing this.

you could try doing something like this in your button click handler
String command = "c:\\program files\\Internet Explorer\\iexplore.exe c:\yourfile.html"
Runtime rt = Runtime.getRunTime();
rt.exec(command);

Similar Messages

  • To launch Internet Explorer on button click.

    Hello friends
    I want to open Internet Explorer with a html file on button click. The html file will contain some report data in html format which I want to show to the user on button click.
    Please help me in doing this.

    Maybe you're looking for a faster solution than Joni's thread. I just made this for an Info Screen, maybe it helps:
    // lunch the Browser and view the HTML file
    public void openBrowserWith (String aHtmlLocation) {
         try {
              Runtime.getRuntime().exec(getExplorerPath() + " " + aHtmlLocation);
         catch (Exception e) {}
    // this method should return the program path of your own browser; it needn't be as hard-coded as I did:
    public String getExplorerPath() {
         return "c:\\program files\\plus!\\Microsoft Internet\\iexplore.exe"
    // I think you know how to add a JButton and a ActionListener to your application; thus, we only need to implement the actionPerformed method:
    public void actionPerformed(ActionEvent e) {
         String command = e.getActionCommand();
         if ("OK".equals(command))
              openBrowserWith(getHtmlLocation());
    public String getHtmlLocation {
         return "http://" or "file://" and "the path where your HTML file is";
    }

  • Launching Internet Explorer

    I am trying to launch internet explorer from a java program using -
    Runtime.getRuntime().exec("c:\path for IE.exe")
    This works OK if I enter the correct path in the above statement as a string literal.
    However the program generates a html file that I wish to view with IE.
    So in my program code I have something like -
    String fileName = file.getName()
    Runtime.getRuntime().exec(fileName)
    Unfortuneately IE will not launch with this code - does anyone know why ?
    Regards
    Scott

    replace filename with ---> cmd.exe /c start iexplore
    filename <---in the runtime method call....I have tried this but no joy. I am unsure how to format the command in the runtime method call and this is probably why its not working.
    Do I need to do something like ("cmd.exe /c start iexplore" + fileName)

  • Opening a .tif or .tiff file in Internet Explorer using Quicktime in Window

    How do you open a .tif or .tiff file within Internet Explorer using Quicktime in Windows 7?
    Thank you for looking.

    Open the QuickTime control panel to Browser>Mime Settings>Images-Still image files and select TIFF image then click-ok apply ok. You want to do this without the browser running. If this doesn't help you may want to post a website with the TIFF, for myself or others to try

  • How to move a selected row data from one grid to another grid using button click handler in flex4

    hi friends,
    i am doing flex4 mxml web application,
    i am struck in this concept please help some one.
    i am using two seperated forms and each form having one data grid.
    In first datagrid i am having 5 rows and one button(outside the data grid with lable MOVE). when i am click a row from the datagrid and click the MOVE button means that row should disable from the present datagrid and that row will go and visible in  the second datagrid.
    i dont want drag and drop method, i want this process only using button click handler.
    how to do this?
    any suggession or snippet code are welcome.
    Thanks,
    B.venkatesan.

    Hi,
    You can get an idea from foolowing code and also from the link which i am providing.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    width="613" height="502" viewSourceURL="../files/DataGridExampleCinco.mxml">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.binding.utils.BindingUtils;
    [Bindable]
    private var allGames:ArrayCollection;
    [Bindable]
    private var selectedGames:ArrayCollection;
    private function initDGAllGames():void
    allGames = new ArrayCollection();
    allGames.addItem({name: "World of Warcraft",
    creator: "Blizzard", publisher: "Blizzard"});
    allGames.addItem({name: "Halo",
    creator: "Bungie", publisher: "Microsoft"});
    allGames.addItem({name: "Gears of War",
    creator: "Epic", publisher: "Microsoft"});
    allGames.addItem({name: "City of Heroes",
    creator: "Cryptic Studios", publisher: "NCSoft"});
    allGames.addItem({name: "Doom",
    creator: "id Software", publisher: "id Software"});
    protected function button1_clickHandler(event:MouseEvent):void
    BindingUtils.bindProperty(dgSelectedGames,"dataProvider" ,dgAllGames ,"selectedItems");
    ]]>
    </mx:Script>
    <mx:Label x="11" y="67" text="All our data"/>
    <mx:Label x="10" y="353" text="Selected Data"/>
    <mx:Form x="144" y="10" height="277">
    <mx:DataGrid id="dgAllGames" width="417" height="173"
    creationComplete="{initDGAllGames()}" dataProvider="{allGames}" editable="false">
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:FormItem label="Label">
    <mx:Button label="Move" click="button1_clickHandler(event)"/>
    </mx:FormItem>
    </mx:Form>
    <mx:Form x="120" y="333">
    <mx:DataGrid id="dgSelectedGames" width="417" height="110" >
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Form>
    </mx:Application>
    Link:
    http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/ae9bee8d-e2ac-43 c5-9b6d-c799d4abb2a3/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • Cannot link through an upload webpage with Internet Explorer using MAC desktop

    Cannot access an upload webpage to upload documents through Internet Explorer using Firefox through my MAC desktop.
    Tried add on IE Tab but not permitted through Firefox 8.0.1

    Hi,
    Please try this: '''Tools''' (or '''Alt''' + '''T''') > '''Options''' > '''Applications'''. Look for or start typing '''mailto''' in the search box and for the '''Action''' change it to the desired mail client (the application that opens up in Explorer) if the value is different.
    '''Options''' > '''Applications''': https://support.mozilla.com/en-US/kb/Options%20window%20-%20Applications%20panel
    Managing Actions: https://support.mozilla.com/en-US/kb/Managing%20file%20types

  • Trouble launching Internet Explorer

    For the last week I haven't been able to launch Internet Explorer. I can get on the internet through Safari, so the problem is not with my internet connection. I've tried trashing the program and re-installing with no success.

    I don't know why I wandered onto this forum, I posted on the Tiger forum Geeting on line and Networking.
    Andrew Bishop, "Internet Explorer not working", 03:35pm Nov 4, 2005 CDT
    and see
    http://www.tuaw.com/2005/10/31/a-microsoft-catch-22/
    It's microsoft up to its tricks. Either disconnect the computer from the Internet and reset the home page from preferences in IE or do as suggested in the links.

  • Internet Explorer allows double click on submit

    Im having a problem with my update and insert pages while using WindowsXP IE 7.
    The insert page will allow you to do multiple clicks on the insert/submit button. The insert button will not go grey after clicking on it. You can continue to click and you can hear the click click sound. After the double click(s), my Validate Form SB will tell me I have a duplicate User Name in the database. When I check, the insert has taken place. It does the first insert and then goes back to make the insert for the second click or the third or the fourth click.
    On my update page, I have a send e-mail SB. When you do a double click on this page, the page will send multiple e-mails. Itll send as many e-mail as you click.
    None of this happens in Safari or FireFox.
    I tried Disable Submit behavior but will not fix it: http://www.dmxzone.com/ShowDetail.asp?NewsId=7615
    I tried Submit Once and it didnt work either:
    http://www.kaosweaver.com/extensions/details.php?id=75&cid=3
    Is there a fix for Internet Explorer?
    Do I have to do some sort of JavaScript code just for IE (whats the code), seems like this should be part of the Toolbox.

    I have Microsoft Outlook also with Firefox and can open just about every link, url, company page, etc via the email links. First, make sure you have noted the email as NOT JUNK so that the links are activated by Outlook. Second, Firefox needs to your default browser for the links to open in Firefox rather than IE. There are some links from Microsoft that may ignore the default and open in IE but not all anymore. I have a Sony laptop which ignores the default browser and opens all of its support information from its VAIO software loaded on the computer in IE. Besides that though, over 95% of my items will open in my default brwser selection, which is currently Firefox.
    Go to this link to make sure Firefox is your default browser.
    http://support.mozilla.com/en-US/kb/How+to+make+Firefox+the+default+browser?s=Make+Firefox+the+default+browser+&as=s
    Or this link to make any browswer of your choice the default.
    http://www.chami.com/tips/internet/043099I.html
    Hope this helps.

  • History problem in jsp page,internet explorer back button

    hi everyone
    i have a jsp page suppose a.jsp.in which i am using dropdown menu to displays:list of data from database,one submit button i am using name select and click here.after selecting the value from dropdown menu ,again some other data will be displayed from some other table in same a.jsp page.
    my problem is:
    when user selects one value from drop down menu ,it is diplaying the value in same page .upto here is ok
    and i click back button from I.E only one page back it is showing
    but when user select the value form drop down menu 2nd time ,and after data get dipalyed in same apge a.jsp.then
    whne i click back button ,now it is showing two a.jsp page .history is not going .
    this is the problem.i dont want to this morw than one page get displayed in back button.only one page a.jsp
    if anyone has understood my problem ,please help.
    thanku

    thanks java2006
    but it is not working .i will try to explain once again
    1. one page called a.jsp.this page contains one drop drown menu list box ,and one submit button.
    2.data in drop dropdown is coming from db.as the user select value from drop down box .relalted value is diplayed on same a.jsp page.
    3.again user select the 2ndvalue from drop down box ,related value is displayed.
    this i explained about my a.jsp page.
    problem is
    4.when user select the 1st value and clcik on submit button related value is displaying.upto here its ok.and in back button of Internet explorer it is showing only one a.jsp page
    5.but whenever i am trying to see 2nd or 3rd or more value from drop down after related value is being diplayed in same a.jsp page.
    the back button of internet exlorer showing two a.jsp page after clcicking submit button
    .as u have told the code aso but it is not working
    i have added ur code indisde html tags .

  • Opening XML files In Internet Explorer Using WebLogic

    Hi,
    i am developing a web application which runs under web logic. When a link is clicked to open a new browser window which will contain an XML file there are no problems using Firefox, however when i do the same in IE, a new window opens but it remains blank, not showing any XML content.
    Any ideas why this could be happening?
    Thanks

    What do you mean with "run-on text"?
    If you refer to the XML content (including the tags, "raw XML"), then the Internet Explorer fails to display the content of the XML using the style sheet.
    Another option is that you configured the Internet Explorer to always display the raw content instead of using the style sheet.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Launch Internet Explorer

    Hi,
    I have to launch MS Internet Explorer from my java application. I am using the following code:
    try{
         Runtime rt = Runtime.getRuntime();
         rt.exec("iexplore.exe www.yahoo.com");
    }catch(IOException ioe){
         System.out.println(ioe);
    }But its generating an exception as below:
    java.io.IOException: Cannot run program "iexplore.exe": CreateProcess error=2, The system cannot find the file specified.
    If I give the absolute path then it executes successfully.Like
    try{
         Runtime rt = Runtime.getRuntime();
         rt.exec("C:\\Program Files\\Internet Explorer\\iexplore.exe www.yahoo.com");
    }catch(IOException ioe){
         System.out.println(ioe);
    }Now the problem is that I can't give the absolute path because window may be installed on drive "D:\\". What I wanted is to get the "Program Files" path and then launch "IEXPLORE.EXE".
    Any solution.
    Thanks in anticipation.
    Regards,
    Ahmad Jalil Qarshi

    Try with
        String[] commands = {"cmd", "/c", "start", "iexplore.exe","-nohome", "www.yahoo.com"};
        Runtime.getRuntime().exec(commands);If using jdk1.6 then the Desktop class is the preferred way to start the default browser.
    See http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html
    try {
       Desktop.browse(new URL("http://www.yahoo.com");
    catch (MalformedURLException e1) {
       e1.printStackTrace();
    catch (DesktopException e2) {
       e2.printStackTrace();
    http://www.rgagnon.com/javadetails/java-0579.html
    Bye.

  • Enable Commenting Tools in Adobe Acrobat under Browser Plug-in in Internet Explorer using

    We have a problem in showing commenting tools in Adobe Acrobat under browser plug-in in Internet Explorer.  Adobe Support cannot answer my question and refer me to Devnet here.
    Our system is using browser plug-in to display PDF file by Acrobat under > > Internet Explorer (document viewer). The PDF documents have reader extension enabled.
    We supposed that if a PDF page is viewed and I customize the toolbar, the same toolbar and icon will be displayed next time when I retrieve a page, only if I select "Review and Comment" icon, and it only applies for v8.0.0. If I do not select review and comment icon, or I have selected review and comment icon but > > use other version of 8.x, my selected toolbar and icon cannot reappear next time.
    If my selected toolbar and icon do not appear, I can press F8 to hide the icons. If press F8 again to unhide the icons, all my selected icons can be shown this time. But it does not automatically re-appear if I open another documet viewer.
    Kindly note that all PDF files have reader extension enabled, and only Acrobat 8.0.0 Professional is used in client PC. There is no Adobe Reader in the PC. The PDF version is 1.4 (Acrobat 5.x) or 1.5 (Acrobat 6.x). The user has comment rights since the PDF file has reader extension and Acrobat 8.0.0 is used. User has no problem in mark-up the PDF files, but has problem in showing the selected tools.
    OS: Windows 2000 SP4
    Browser: IE 6.0 SP1
    Acrobat version: Acrobat 8.0.0 Professional
    PDF version: 1.4 (Acrobat 5.x) or 1.5 (Acrobat 6.x)
    Steps to produce the problem.
    1. Scan paper document and create a batch of PDF files (one page per file)
    2. Enable reader extension for all PDF files by LifeCycle.
    3. Put the PDF files into a web based interface, entering a page number will open a new web browser which interface the browser plug-in and display the content of the imaged PDF file by Adobe Acrobat Professional 8.0.0.
    4. Open a page. It only show a few icons on toolbar (see a.png).
    5. Select the commenting icons to be shown (do not enabled in "review and comment)".  The icons will be shown.
    6. If the browser is closed, then use the web interface to open another page, the selected tools cannot be shown (same as a.png attached in my previous email).
    7. Select "review and comment" tool. (see b.png attached in my previous email)
    8. The selected tools are shown again (see c.png attached in my previous email).
    9. Close the browser, use the web interface to open another page, the selected tools are still here.
    10. Unselect "review and comment", the selected tools will be hidden next time when a page is opened by the web interface.
    11. Close the browser, and open a new page in web interface, the PDF file will be shown, and the selected icons are hidden.
    12. Press F8 to hide icons, all tools are hidden.
    13. Press F8 to unhide icons, all selected tools that are not shown in step 11 are shown again
    14. If Acrobat 8.0.0 is patched or updated, "review and comment" tool has no effect in "memorizing" the selected tools.

    That option is nothing to do with the PDF being editable, it's to control the display of the toolbars. "Reading Mode" is when the toolbars are hidden and the black head-up display navigation bar appears at the bottom of the screen.
    PDFs displayed within a web browser with Acrobat/Reader X are not editable, nor can you apply markups, unless you're within a browser-based-review workflow. You have to save a copy locally and open it in desktop mode to make any changes.

  • How do I fix my homepage for Internet Explorer use, when using dreamweaver?

    Hi,
    I have recently created my first two webpages, and they looked like they were working when I was using Firefox. But when using Internet Explorer one of the pages drop the text down to an area of the screen where it's impossible to read it. Can someone please help me out? I am using Dreamweaver and I'm sure there is a basic problem I've created for myself, but I can't figure out what it is! This is the webpage I'm having problems with: www.haanshuus.no.
    Thanks a lot for any help in resolving this problem!

    I don't think this has anything to do with the conditional comments.
    The problem is with your layout approach.  Trying to precisely fit content over a very large background image never works as planned.  If you increase text size in any browser (Zoom text only, Ctrl+++), your black content spills out of the gray box into the black region below.  Black text on black background becomes invisible.    Your approach works in Print design but fails on the web because web pages need to be flexible.
    Remove your Body background image and notice how your page flows.  A different approach would be to slice your background into sections to create a flexible gray box.
    Example here:
    http://alt-web.com/DEMOS/Image-slices-in-a-CSS-based-layout.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Same Jitter in Internet Explorer using according

    Hi,
    I have a page which uses a spry accordion. In Firefox it
    works great. In Internet Explorer the animation is very jumpy. I
    found some topics regarding this issue but I have tried changing
    doctype, inserting the code in spryeffect.js, upgrading to 1.5,
    removing the bottom borders, changing overflow to hidden, and
    setting and unsetting the content height, but I have had no luck.
    Does anyone one know of any other solution I might try, or
    deffinate solution? Here is a like to the page:
    http://sexyexoticjobs.com/talentprofile.php?recordID=2
    Thanks,
    Scott

    Hi,
    I have a page which uses a spry accordion. In Firefox it
    works great. In Internet Explorer the animation is very jumpy. I
    found some topics regarding this issue but I have tried changing
    doctype, inserting the code in spryeffect.js, upgrading to 1.5,
    removing the bottom borders, changing overflow to hidden, and
    setting and unsetting the content height, but I have had no luck.
    Does anyone one know of any other solution I might try, or
    deffinate solution? Here is a like to the page:
    http://sexyexoticjobs.com/talentprofile.php?recordID=2
    Thanks,
    Scott

  • How to add Proxy server to internet explorer using a Group Policy 2008

    Hi,
    I am using active directory of Windows Server 2008 R2 x64. I have a proxy server from Microsoft TMG 2010.
    What I need to do is I need to add Proxy server settings to the browser via the GPO. How can I do it?
    Thanks in advance.
    Yosh
    --------------------------------------------------------------------------------- YOSHIKA04 ------------------------------------------------------------------------------

    > instead.  That's all very well but using above IE 8 isn't supported in
    > preferences.
    It IS supported. Either use a newer OS or manually edit the XML:
    http://blogs.technet.com/b/asiasupp/archive/2011/03/30/internet-explorer-9-ie9-group-policy-preferences-gpp.aspx
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

Maybe you are looking for