asp.net 运行在服务器端,LZ 准备在服务器端打开 pdf ? 那有什么意思?

解决方案 »

  1.   

    我现在做了一个
    在WebService中调用Acrobat的COM组件,然后在项目里引用这个方法
    开始先添加引用(add Reference)在COM里找到Acrobat
    Service1.svc的cs里添加如下代码
    [OperationContract]
            public void CallArcobat()
            {
                AcroAppClass acrobatApp = new AcroAppClass();             
                acrobatApp.Show();
            }
    之后右键单击项目添加Webservice的引用,之后我是在Silverlight的控件事件调用的,
     private void Button_Click(object sender, RoutedEventArgs e)  
            {
              SilverlightApplication7.RandomServer.Service1Client client = new SilverlightApplication7.RandomServer.Service1Client();            client.CallArcobatAsync();
                client.CallArcobatCompleted+=new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_CallArcobatCompleted);
                       
            }
    之后我就可以再Visual Studio运行看到弹出Acrobat的窗口,但我发布到IIS上失败。系统找不到该进程...
    有没高手指点下...还有对Acrobat的API不熟悉,不知道怎么把PDF的路径作为参数传进去!