是否可以在 EA 中以类似于 HTML 生成的方式以编程方式触发文档生成?
有没有办法像下面的“RunHTMLReport”那样生成文档?
“RunHTMLReport(PackageGUID,ExportPath,ImageFormat,Style,Extension)”
最佳答案
正如 Thomas 所说,您可以使用 Repository.CreateDocumentGenerator
。然而,这是一个用于生成报告的完整工具(描述它的最佳方式就像您正在做虚拟文档,但在代码中)。
这实际上用于根据模型片段定义报告模板。 Here's the documentation on using the Document Generator
要在已定义的模板上运行报告,请使用 Project.RunReport
。 You can find the documentation here.
您使用 Repository.GetProjectInterface
获取您的项目对象
关于c# - 如何以编程方式在 EA 中触发文档生成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44387649/