Sample code for the Aloaha ZUGFeRD SDK (VB.NET, C#, VB6/VBA)

To make integrating the Aloaha ZUGFeRD SDK easier, we provide sample code in VB.NET and VB6. Most of the samples are documented in German; the code itself is the same in every language.

For Delphi (from version 5) and for VB6, VB5 and VBA there are dedicated guides: Creating ZUGFeRD and XRechnung with Delphi and Creating ZUGFeRD and XRechnung with VB6, VB5 and VBA.

If you have suggestions for further samples, please do not hesitate to send them to us at info@aloaha.com.

Please make sure to read this article: Creating a ZUGFeRD/XRechnung XML file (German).

Where to start

Samples by topic

All articles listed above are in German.

Code categories

The complete method reference is in the API reference, and every EN 16931 business term is explained in the BT/BG explorer.

Frequently asked questions

In which languages is sample code available?

Mainly in VB.NET and VB6/VBA; the same methods work in C# and other COM-capable languages. There are dedicated guides for Delphi and for VB6, VB5 and VBA.

Where do I start if I want to create my first ZUGFeRD invoice?

With the quick start for VB.NET: it shows the complete path from creating the object to the finished PDF/A-3 with embedded XML. A larger example with allowances and two VAT rates is the sample code for XRechnung.

Can I create e-invoices without programming against the SDK?

Yes. With the command-line tool zugcmd you create ZUGFeRD and XRechnung invoices from CSV files and start it from any application, batch file or script.