THPDFEInvoiceRuleRegistry.RegisterRuleSet

Registers or replaces one explicit business-rule or country-rule layer for a profile

Declaration

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

Unit

HPDFEInvoiceValidator

Behavior

The version and resource name must be nonempty, the resource must be relative to the selected resource directory, and absolute paths, URLs, and parent traversal are rejected

Pass nil for Engine to use the built-in compatibility engine, or register a host-provided implementation of IHPDFESchematronEngine for official compiled XSLT or other rule packages

Related APIs

E-Invoice Business-Rule Validation

THPDFEInvoiceValidationReport