先放在vb里试试行不,vb6里比较好调试

解决方案 »

  1.   

    luckweb(冰川) 
    我就是在vb里面试出这些函数的,比如print(),gotoLastPage(),setZoom()这些函数在js中都调用,我不知道哪个是旋转函数,我猜想是ZOrder(参数),因为其参数可以为vertical(1),horizontal(0),但是在js中我不能调用ZOrder(0)或ZOrder(1)
      

  2.   


    <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" width="286" height="225">
    </object><script language="JavaScript">
    <!--
    for(a in MediaPlayer1)
    {
    document.write(a + "<br>")
    }//-->
    </script>
      

  3.   

    awaysrain(绝对零度)(新的一年,新的开始) 
    我列出了那些函数,不过似乎好象你理解错了我的意思,我要做的是按一个按钮可以使显示的pdf文件能够旋转
      

  4.   

    你用的是什么ocx,没有相关的文档吗?
      

  5.   

    就是装了acrobat 5.0自带的PDF.OCX,我没有相关的文档,所以比较郁闷
      

  6.   

    不知道,你有没有VS.net 文件->新建项目
    项目->添加引用, 浏览. 选择 pdf.ocx文件
    引用成功.
    用VS.net的对象浏览器里面查看相关的方法.有Print()这个方法,没有rotate()这种方法..AboutBox()
    goBackwardStack()
    goForwardStack()
    gotoFirstPage()
    gotoLastPage()
    gotoNextPage()
    gotoPreviousPage()
    LoadFile(string)
    printAll()
    printAllFit(bool)
    printPages(int,int)
    printPagesFit(int,int,bool)
    printWithDialog()
    print()
    setCurrentPage(int)
    setLayoutMode(string)
    setNameDest(string)
    setPageMode(string)
    setShowScrollbars(bool)
    setShowToolbar(bool)
    setView(string)
    setViewRect(float,float,float,float)
    setViewScroll(string,float)
    setZoom(float)
    setZoomScroll(float,float,float)
      

  7.   

    wanghr100(灰豆宝宝.net) 
    这些函数我都得到,但是我无法知道旋转函数是哪个,我已经试过了很多函数,你上边还少了一个ZOrder函数,不知道setView(string)函数参数应该写什么?
      

  8.   

    用interdev开发,基本不需要查资料就有很多提示。
      

  9.   

    <OBJECT CLASSID="clsid:0713E8A2-850A-101B-AFC0-4210102A8DA7" id=obj> </OBJECT>
    <SCRIPT >
    for(a in obj)
    {
    document.write( a+"<br>");
    }
    </SCRIPT>
      

  10.   

    dullwolf(超级大笨狼过程版(★★)) ( ) 
    老兄 上面已经有人贴出这样的代码了,它得出的函数不是OCX中函数
      

  11.   

    好像没有旋转函数啊.你看,这个才有.
    <OBJECT classid=CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6 id=BaoBao 
    style="HEIGHT: 200px; LEFT:0; POSITION: absolute; TOP:0; WIDTH: 400px; ZINDEX: 0">
    <PARAM NAME="Line0001" VALUE="SetLineStyle(0)">
    <PARAM NAME="Line0002" VALUE="SetFillColor(0, 0, 255)">
    <PARAM NAME="Line0003" VALUE="SetFillStyle(1)">
    <PARAM NAME="Line0004" VALUE="SetFont('Arial', 20, 200, 0, 0, 0)">
    <PARAM NAME="Line0005" VALUE="Text('JavaScript', -95, 87)"></OBJECT>
    <script>
    BaoBao.Rotate(0,0,45);   //文字顺时针旋转45度
    </script>
      

  12.   

    另,你如果要旋转90度,180度,的话,
    可以用CSS的滤镜来实现.
      

  13.   

    CSS的滤镜可以对控件旋转吗?
      

  14.   

    可以哦.呵呵 :) <style>
    #idDiv{width:80%;height:80px;background-color:#000000;color:#FFFFFF;padding:4px;filter:progid:DXImageTransform.Microsoft.BasicImage();}
    </style>
    <div id=idDiv><OBJECT ID="Player" height="300" width="400"
      CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <PARAM NAME="invokeURLs" VALUE="False">
    </OBJECT></div>
    <script>
    var oDiv=document.all("idDiv");
    oDiv.filters[0].Rotation=1;
    </script>
      

  15.   

    那,想转几度就转几度了.
    用CSS实现的.
    太佩服苏昱大哥了..<style>
    #idDiv{width:290px;text-align:left;padding:6px;background-color:#000000;font-family:tahoma,Arial;filter:progid:DXImageTransform.Microsoft.Matrix(M11=1.0, sizingmethod="auto expand");}
    </style>
    <script>
    var sFilter="filter : progid:DXImageTransform.Microsoft.Matrix(";
    var fM11,fM12,fM21,fM22,fDx,fDy,sType,sMethod;
    var oDiv,oCodeDiv,oTxtRotation,oBtnRotation;
    var i=0;function rdl_SetRotation(deg) {
    var deg2rad=Math.PI*2/360;
    rad=deg*deg2rad;
    costheta = Math.cos(rad);
    sintheta = Math.sin(rad);
    with (oDiv.filters.item(0)) {
    M11=costheta;M12=-sintheta;M21=sintheta;M22=costheta;
    }
    rdl_UpdateMatrix();
    }function rdl_DoAnimation(){
    oDiv.onfilterchange=rdl_DoAnimation;
    i+=5;
    if (i>359) {
    i=0;
    oDiv.onfilterchange=null;
    }
    rdl_SetRotation(i);
    }function rdl_UpdateMatrix() {
    with (oDiv.filters.item(0)) {
    fM11=Math.round(M11*10)/10;fM12=Math.round(M12*10)/10;fM21=Math.round(M21*10)/10;fM22=Math.round(M22*10)/10;
    fDx=Math.round(Dx*10)/10;fDy=Math.round(Dy*10)/10;sType=FilterType;sMethod=SizingMethod;
    }
    oCodeDiv.innerText=sFilter+"SizingMethod="+sMethod+",FilterType="+sType+",Dx="+fDx+",Dy="+fDy+",M11="+fM11+",M12="+fM12+",M21="+fM21+",M22="+fM22+");";
    }function rdl_Load(e){
    oDiv=document.all("idDiv");
    oCodeDiv=document.all("idCodeDiv");
    oTxtRotation=document.all("idTxtRotation");
    oBtnRotation=document.all("idBtnRotation");
    var oSelType=document.all("idSelType");
    var oSelSize=document.all("idSelSize");
    oSelType.onchange=new Function("with (this) oDiv.filters.item(0).filtertype=options(selectedIndex).value;rdl_UpdateMatrix();");
    oSelSize.onchange=new Function("with (this) oDiv.filters.item(0).SizingMethod=options(selectedIndex).value;rdl_UpdateMatrix();");
    oTxtRotation.onclick=new Function("if (this.value.length>4) this.value=0;");
    oBtnRotation.onclick=new Function("rdl_SetRotation(oTxtRotation.value);");
    rdl_UpdateMatrix();
    }function rdl_DoHFlip(e){
    with (oDiv.filters.item(0)) {M11=0-M11;M12=0-M12;}
    rdl_UpdateMatrix();
    }function rdl_DoVFlip(e){
    with (oDiv.filters.item(0)) {M21=0-M21;M22=0-M22;}
    rdl_UpdateMatrix();
    }window.onload=rdl_Load;
    </script>
    <div id=idParentDiv><div id=idDiv>
    ><OBJECT ID="Player" height="300" width="400"
      CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <PARAM NAME="invokeURLs" VALUE="False">
    </OBJECT>
    </div></div><br>
    <table><tr>
    <td><input type=button value=左右反转 onclick="rdl_DoHFlip();"><input type=button value="上下反转" onclick="rdl_DoVFlip();"></td>
    <td ><input id=idTxtRotation type=text value="输入角度数字" size=14></input>&nbsp;<input id=idBtnRotation type=button value="旋转"></td>
    <td ><select id=idSelSize><option value="auto expand">auto expand</option><option value="clip to original">clip to original</option></select></td>
    <td ><select id=idSelType><option value="bilinear">Bilinear</option><option value="nearest">Nearest Neighbour</option></select></td>
    <td><input type=button value="动画" onclick="rdl_DoAnimation();"></td>
    </tr></table>
    <br>
    <div id=idCodeDiv>filter</div>
      

  16.   

    wanghr100(灰豆宝宝.net)大哥,真的很谢谢你啊,热心人,呵呵:)
    上面的代码,很好,我试过了,确实可以旋转,但是我一改成pdf控件,它就不听话,不旋转了,郁闷阿!!!!
    就是把上面的代码:
    <OBJECT ID="Player" height="300" width="400"
      CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <PARAM NAME="invokeURLs" VALUE="False">
    </OBJECT>改成了:
    <OBJECT ID="Player" height="300" width="400"
      CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000">
    <PARAM NAME="SRC" VALUE="C:\1234.pdf">
    <PARAM NAME="invokeURLs" VALUE="False">
    </OBJECT>
      

  17.   

    那是怎么回事呢.
    偶用MediaPlayer确实可以旋转啊 :(
    偶帮你请真正的高手吧.
      

  18.   

    wanghr100(灰豆宝宝.net)大哥,太谢谢你了!!!!向你致敬!
      

  19.   

    客户要求有的权限的人只可以打印pdf文件,有的只能保存pdf文件,有的就仅仅只能查看,而我们现在仅仅能控制的就是pdf.ocx,不知道大家有没有什么好的方法?