Results 1 to 2 of 2

Thread: Open MS Word doc inside IE without poping up Open/Save dialogue

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Location
    fgh
    Posts
    332

    Open MS Word doc inside IE without poping up Open/Save dialogue

    Hello,

    I need to open a word document in New(_Blank) IE window on click of asp:hyperlink in my page.

    For that I have used javascript to open up the word document in new IE window. But for opening MS Word doc, it is always poping up Open/Save dialogue. I want to directly open the word document inside IE window without asking Open/Save dialogue.

    I have to open MS word in New IE window itself.

    javascript code
    function openMoreDetails(urlpath)
    {
    window.open(urlpath,'_blank','height=466,width=500,top=20,left=20,status=yes,toolbar=no,menubar=no,l ocation=no,scrollbars=yes,resizable=yes');
    }

    Aspx.cs page code

    lnkMoreDetails.Attributes.Add("onclick", "openMoreDetails('" + FullURLPath + "')");


    thankzzzzzzzz
    gh

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Open MS Word doc inside IE without poping up Open/Save dialogue

    If the user has the word browser plugin, then it'll open for them in the browser window. If the user doesn't have the plugin, then it'll give them the save/cancel dialog. This is browser behavior, you can't control it from your application.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width