你的控件下载后能安装到系统里的话,以后就不会要下载了吧。象swf一样的

解决方案 »

  1.   

    就象KELE8啊,你玩可乐吧的时候人家怎么提示的?人家就是在第一次的时候提示,下载啊。
      

  2.   

    帮我看看这段代码。
    单击Button1的时候总是提醒我“没权限”<HTML XMLNS:IE>
    <HEAD>
    <?IMPORT NAMESPACE="IE" IMPLEMENTATION="#default">
    <STYLE TYPE="text/css">
    .lorstyle
    {
        width:5.5in;
        height:8in;
        margin:1in;
        background:white;   
        border:1 dashed gray;
    }
    .pagestyle

        width:8.5in;
        height:11in;
        background:#FFFF99;   
    border-left:1 solid black;
    border-top:1 solid black;
    border-right:4 solid black;
    border-bottom:4 solid black;
        margin:10px;
    }
    </STYLE>
    <SCRIPT LANGUAGE="JScript">
    function CheckPrint()
    {
    switch (dialogArguments.__IE_PrintType)
    {
    case "Prompt":
    if (printer.showPrintDialog()) 
    PrintPrep();
    break;
    case "NoPrompt":
    PrintPrep();
    break;
    case "Preview":
    default:
    break;
    }
    }function PrintPrep()
    {
    if (layoutrect1.contentDocument.readyState == "complete")
    {
    // This block will be called when printing with user prompt
    // because the Print dialog box gives time for the content
    // document to complete loading
    PrintNow();
    }
    else
    {
    // This block will usually be called when printing w/o user prompt
    // and sets an event handler that listens for the loading of the content
    // document before printing. Sometimes, however, the content document
    // will be loaded in time for the previous block to execute
    layoutrect1.contentDocument.onreadystatechange = PrintWhenContentDocComplete;
    }
    }function PrintWhenContentDocComplete()
    {
    if (layoutrect1.contentDocument.readyState == "complete")
    {
    layoutrect1.contentDocument.onreadystatechange = null;
    PrintNow();
    }
    }function PrintNow()
    {
    printer.startDoc("Printing from Tmplt2.htm");
    printer.printPage(page1);
    printer.printPage(page2);
    printer.stopDoc();
    }
    </SCRIPT>
    <IE:TEMPLATEPRINTER ID="printer"/>
    </HEAD><BODY>
    <INPUT type="button" value="Button" ID="Button1" NAME="Button1" onclick="PrintNow()">
    <IE:DEVICERECT ID="page1" CLASS="pagestyle" MEDIA="print">
    <IE:LAYOUTRECT ID="layoutrect1" CONTENTSRC="document" CLASS="lorstyle" NEXTRECT="layoutrect2"/>
    </IE:DEVICERECT><IE:DEVICERECT ID="page2" CLASS="pagestyle" MEDIA="print">
    <IE:LAYOUTRECT ID="layoutrect2" CLASS="lorstyle" ONLAYOUTCOMPLETE="setTimeout('CheckPrint()', 100)"/>
    </IE:DEVICERECT></BODY>
    </HTML>