VeriFactu ships with a COM Interop layer (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mdiago/VeriFactu/llms.txt
Use this file to discover all available pages before exploring further.
Verifactu.Com) that exposes the core invoice submission functionality as COM objects. This enables non-.NET environments — including Microsoft Excel VBA, Access VBA, and VB6 — to submit VERI*FACTU invoices to the AEAT without any .NET programming knowledge. The COM layer is a thin wrapper over the same .NET business objects used by the main library, so all validation rules, blockchain chaining, and AEAT communication logic are fully preserved.
Architectures disponibles
Three separate COM DLLs are provided to match the bitness of the host process:| DLL | Architecture | Typical use case |
|---|---|---|
Verifactu.Com.x86.dll | 32-bit (x86) | 32-bit Office (Excel/Access), VB6 |
Verifactu.Com.x64.dll | 64-bit (x64) | 64-bit Office (Excel/Access) |
Verifactu.Com.ARM64.dll | ARM64 | Windows on ARM devices |
Registro del componente COM
Before you can use the objects in VBA, Excel, Access, or VB6, the DLL must be registered with the Windows COM registry. UseRegAsm.exe from the .NET Framework matching the DLL architecture. For the 64-bit DLL:
/tlb flag generates a type library (.tlb) which enables early-binding and IntelliSense in the VBA editor. The /codebase flag embeds the path to the assembly so that the GAC is not required.
To unregister the component:
Objetos COM disponibles
Once registered, the following COM objects become available through their ProgIds:| ProgId | Class | Description |
|---|---|---|
Verifactu.VfInvoice | VfInvoice | Invoice object — create, submit, and cancel VERI*FACTU invoice records |
Verifactu.VfSettings | VfSettings | Configuration object — certificate paths, endpoints, storage paths |
Verifactu.VfTaxItem | VfTaxItem | Tax line item — represents one tax breakdown entry on an invoice |
Verifactu.VfRectificationItem | VfRectificationItem | Rectification reference — identifies an invoice being rectified |
Verifactu.VfInvoiceQuery | VfInvoiceQuery | Invoice query — retrieve submitted invoices from the AEAT |
Siguientes pasos
VBA / Excel Guide
Step-by-step walkthrough for submitting invoices directly from Excel or Access macros.
COM Object Reference
Full property and method reference for all VeriFactu COM objects.