以远程方式发布文档

通过使用已复制到项目中的 lib 文件以远程方式生成文档。publishSynch 方法将以异步方式发布文档。当此方法返回时,将完成文档生成。第二个参数指定查询结果的限制,这与用户界面中的预览查询结果限制首选项类似。对于完整的文档生成,请使用 0
IDocumentgenerator generator = new RemoteDocumentGenerator( remoteURL, new Credential( remoteUser, remotePassword));
EngineStatus result = generator.publishSynch(docspec, 0);

可以检查状态结果以验证文档生成是否成功。当文档生成成功时,状态为 finished


反馈