在.net中想让上传的pdf文件显示到页面上,显示的pdf文件不让另存为、打印等操作。
这个功能怎么实现呢?

解决方案 »

  1.   

    本帖最后由 net_lover 于 2011-11-30 13:45:54 编辑
      

  2.   

    怎么转啊,我这有个方法,但不知道转换后怎么显示啊!
          private void pdf2swf(string docFile, string swfFile)
            {
                try
                {
                    Process process = new Process();
                    ProcessStartInfo startInfo = new ProcessStartInfo();
                    string paperroot = @"C:\Program Files\Macromedia\FlashPaper 2\FlashPrinter.exe";                startInfo.FileName = paperroot;
                    startInfo.Arguments = docFile + " -o " + swfFile;
                    startInfo.UseShellExecute = false;     //不使用系统外壳程序启动 
                    startInfo.RedirectStandardInput = false;
                    startInfo.RedirectStandardOutput = false;   //重定向输出 
                    startInfo.CreateNoWindow = true;     //不创建窗口 
                    process.StartInfo = startInfo;
                    process.Start();
                    if (process != null)
                        process.Close();            }
                catch (Exception ex)
                {
                    Response.Write(ex.Message);            }
            }
    两个参数,分别是什么啊,转换后怎么显示啊!
      

  3.   

    还有个问题:  转换时能不能把FlashPaper的窗口隐藏掉,不让显示!
      

  4.   

    startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; 
      

  5.   

    winform的话用webbrowser可以显示。
      

  6.   

    activex 类似:http://brava70demo.infograph.com/
      

  7.   

    我是想怎样让Flashpaper隐藏,也就是后台转换!