GetAdditionalReferencedFile

Methode (Function) · gibt Byte() zurück

GetAdditionalReferencedFile ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK. Sie betrifft BG-24 (Rechnungsbegründende Unterlagen), BT-124 (Bezugsort der rechnungsbgegründenden Unterlage), BT-125 (Anhangsdokument), BT-122 (Kennung der rechnungsbegründenden Unterlage).

Beschreibung (aus der SDK-Dokumentation): Reads an additional referenced document on document level (e.g. BG-24 supporting document) and its embedded attachment.

Rückgabe: BT-125: Content of the embedded attachment. Empty array if there is no attachment, the index is out of range or on error.

Hinweis: The output arguments are not changed if Index is out of range.

Deklaration

Public Function GetAdditionalReferencedFile(ByVal Index As Integer, ByRef ID As String, ByRef FileName As String, ByRef MimeType As String, ByRef IssuerAssignedID As String, Optional ByRef LineID As String = "", Optional ByRef TypeCode As String = "", Optional ByRef ReferenceTypeCode As String = "", Optional ByRef Document_Date As String = "", Optional ByRef Name As String = "") As Byte()

Parameter

NameTypPflichtBeschreibung
IndexIntegererforderlichZero-based index of the referenced document (see AdditionalReferencedFileCount).
IDStringerforderlichBT-124: External document location / URI ID (output)
FileNameStringerforderlichBT-125-2: File name of the attachment (output)
MimeTypeStringerforderlichBT-125-1: MIME type of the attachment (output)
IssuerAssignedIDStringerforderlichBT-122: Document reference (output)
LineIDStringoptional (Standard: "")Referenced line ID (output)
TypeCodeStringoptional (Standard: "")Document type code, e.g. 916, 50, 130 (output)
ReferenceTypeCodeStringoptional (Standard: "")Reference type code (output)
Document_DateStringoptional (Standard: "")Issue date of the document (output)
NameStringoptional (Standard: "")BT-123: Document description (output)

Aufruf (VB.NET)

Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
Dim ergebnis = alo.GetAdditionalReferencedFile(Index, ID, FileName, MimeType, IssuerAssignedID)

Business Terms (EN 16931)

Artikel mit GetAdditionalReferencedFile

COM-Schnittstelle

GetAdditionalReferencedFile ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 211 von 328) und damit auch aus VB6, VBA/Access und anderen COM-Clients über CreateObject("Aloaha_ZUGFeRD.XML") aufrufbar. Neue Mitglieder werden immer am Ende von iXML angefügt, damit bestehende COM-Clients unverändert weiterlaufen; nach einem Update die Typbibliothek neu registrieren.

Quelle: XML-Dokumentationskommentare des Aloaha ZUGFeRD SDK (xml.vb). Gleiche Signatur in VB6/VBA über COM; in C# mit Semikolon.