how to avoid IE auto open file has xml content

Discussion in 'Internet Explorer' started by jxc222, Sep 14, 2006.

  1. jxc222

    jxc222 Guest

    Dear all,

    I created a reg file that associate *.xps file ext associate will customized
    app, eg:uedit.exe.
    the test it in IIS + asp.net env.

    when open IE http://localhost/text/mytext.xps
    if mytest.xps file has normal text, it will auto trigger uedit.exe.
    but if mytest.xps file has xml content, IE seems recorgnize it and open it
    directly in IE, instead of trigger uedit.exe

    my purpose is let my app server generate a speciate file ext. and pass
    paramter info into this file,
    and by associate a customized windows app as bridge to pass parameter info
    to windows form based app side.

    how to ?

    Br,
    Jonathan

    [my registed file]
    REGEDIT4

    ; This .REG file may be used by your SETUP program.
    ; If a SETUP program is not available, the entries below will be
    ; registered in your InitInstance automatically with a call to
    ; CWinApp::RegisterShellFileTypes and COleObjectFactory::UpdateRegistryAll.

    [HKEY_CLASSES_ROOT\.xp2]
    @ = "xp2print.Document"
    [HKEY_CLASSES_ROOT\xp2print.Document\shell\open\command]
    @="uedit32.exe \"%1\""


    [HKEY_CLASSES_ROOT\xp2print.Document]
    @ = "XP2Print File"

    [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/x-xp2]
    "Extension" = ".xp2"


    [HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\User Trusted
    External Applications]
    "uedit32.exe" = "Yes"

    [HKEY_CLASSES_ROOT\xp2print.Document]
    "EditFlags" = hex:00,00,01,00
     
    jxc222, Sep 14, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.