ExtractXML
Methode (Function) · gibt String zurück
ExtractXML ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (Originaltext der englischen SDK-Dokumentation): Extracts the embedded ZUGFeRD / Factur-X XML from a PDF invoice and returns it as text.
Rückgabe: The XML decoded as UTF-8; an empty string if no XML was found or an error occurred (see Last_Error)
Hinweis: Uses GetZUGFeRD_XMLfromPDF with the licence key already set or registered.
Deklaration
Public Function ExtractXML(ByVal InvoicePath As String) As String
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
InvoicePath | String | erforderlich | Path of the PDF invoice |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim InvoicePath As String = ""
Dim ergebnis = alo.ExtractXML(InvoicePath)
Aufruf (C#)
var zfStandard = Aloaha_ZUGFeRD.iXML.ZUGFeRDVersion.xInvoice; // Optional ByRef im Konstruktor: in C# mit ref übergeben
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL", ref zfStandard);
string invoicePath = "";
var ergebnis = alo.ExtractXML(invoicePath);
COM-Schnittstelle
ExtractXML ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 287 von 343) 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.