我正在将 .docx、.doc 文件转换为 .ps 文件。在本地机器上工作正常并打印 .ps 文件,但在 IIS 7.5 上它不打印,我只是收到此错误
“ActiveX-Server 尚未启动!请使用函数“cStart()”启动 ActiveX-Server!”
我试过 cStart("/NoProcessingAtStartup", false) 没有运气,并进行了多次搜索,但没有解决。有没有人遇到过这样的事情?
IIS:匿名授权、应用程序池标识
PDFCreator.clsPDFCreator creator = new PDFCreator.clsPDFCreator();
PDFCreator.clsPDFCreatorOptions options = new PDFCreator.clsPDFCreatorOptions();
options = creator.cOptions;
PDFCreator.clsPDFCreatorError perr = new PDFCreator.clsPDFCreatorError();
if (!creator.cStart("/NoProcessingAtStartup", false))
{
Console.Write("Can't Initiase PDF Converter, letter Generation Error");
}
options.UseAutosave = 1;
options.UseAutosaveDirectory = 1;
options.AutosaveDirectory = path;
options.AutosaveFilename = name;
options.AutosaveFormat = 6; //0=PDF, 1=PNG, 2=JPG, 3=BMP, 4=PCX, 5=TIFF, 6=PS, 7= EPS, 8=ASCII
creator.cOptions = options;
creator.cSaveOptions();
creator.cClearCache();
creator.cPrinterStop = false;
creator.cDefaultPrinter = "PDFCreator";
creator.cPrintFile(pathFull);
err = creator.cError.Description.ToString();