THPDFEInvoiceRuleRegistry.RegisterRuleSet

为某个配置文件注册或替换一个显式的业务规则层或国家规则层

声明

procedure RegisterRuleSet(const Profile, Version: AnsiString;
  Scope: THPDFEInvoiceRuleScope; const ResourceName: string;
  const Engine: IHPDFESchematronEngine);

单元

HPDFEInvoiceValidator

行为

版本和资源名必须非空,资源必须相对于所选资源目录,绝对路径、URL 和父目录穿越都会被拒绝

Engine 传 nil 使用内置兼容引擎,或注册宿主提供的 IHPDFESchematronEngine 实现,用于官方编译版 XSLT 或其他规则包

相关 API

电子发票业务规则验证

THPDFEInvoiceValidationReport