ValidateInvoiceBusinessRulesWithToolsA
Faturas, DLL
Requer a edição Small Business. Em código Delphi, C++Builder e Lazarus, crie a biblioteca como TPDFlibSmallBusiness (unidade PDFlibSmallBusiness) ou TPDFlibEnterprise; as builds DLL e ActiveX das edições Small Business e Enterprise a fornecem sem alterações. A edição Single mantém o método, que retorna 0, uma string vazia ou False e define LastErrorCode como 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
Descrição
Executa a mesma validação XSD e Schematron que a ValidateInvoiceBusinessRulesWithTools, pela convenção de strings estreitas da DLL
Sintaxe
Delphi
Function DLValidateInvoiceBusinessRulesWithToolsA(InstanceID: Integer;
EmbeddedFileName, Standard, RulesVersion, RulesProfile, SchemaFile, SchematronStylesheetFile, XMLLintExecutable, JavaExecutable, SaxonClassPath: PAnsiChar; TimeoutMS: Integer): PAnsiChar; Stdcall;DLL
const char* DLValidateInvoiceBusinessRulesWithToolsA(int InstanceID, const char* EmbeddedFileName, const char* Standard, const char* RulesVersion, const char* RulesProfile, const char* SchemaFile, const char* SchematronStylesheetFile, const char* XMLLintExecutable, const char* JavaExecutable, const char* SaxonClassPath, int TimeoutMS);Valores retornados
Retorna o ponteiro JSON próprio da instância descrevendo os dois estágios de validação
Observações
O resultado contém JSON em UTF-8 e as strings de entrada usam a configuração ANSI da instância; copie o ponteiro antes da próxima chamada que retorna string na mesma instância
Veja também
ValidateInvoiceBusinessRulesWithTools, ValidateInvoiceBusinessRules, ValidateFacturXInvoice