开发平台vs2005,C#WPS.ApplicationClass wpsApp = new WPS.ApplicationClass();WPS.Document document = wpsApp.Documents.Open(.....);document.ExportPdf("D:\\test.pdf", string.Empty, string.Empty);这样导出的pdf不能设置权限,比如不能修改、不能打印等等,而在wps2009中的高级中可以设置,用代码是如何设置?请各位大侠指教,感激不尽~~~在WPS.PdfExportOptions接口中有 
WpsPdfCopyRight CopyRight { get; set; }
WpsPdfPrintRight PrintRight { get; set; }bool get_EditRight(WpsPdfEditRight Rights);
void set_EditRight(WpsPdfEditRight Rights, bool prop);我相信这些方法是用来设置导出pdf的权限,可是如何与WPS.Document.ExportPDF关联? 

解决方案 »

  1.   

    WPS.PdfExportOptions pdfExportOptions = document.Application.PdfExportOptions;pdfExportOptions.PrintRight = WPS.WpsPdfPrintRight.wpsPdfNotAllowPrint;
      

  2.   

    WPS.PdfExportOptions pdfExportOptions = document.Application.PdfExportOptions;
    pdfExportOptions.PrintRight = WPS.WpsPdfPrintRight.wpsPdfNotAllowPrint
      

  3.   

    wps给接口了哦,我找了很久没找到,所以就装了office...
      

  4.   

    wps还开源?用的还是office2003.
    关注了。