ExportZUGFeRDXML2Disk
Methode (Function) · gibt Boolean zurück
ExportZUGFeRDXML2Disk ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (aus der SDK-Dokumentation): Extracts the embedded ZUGFeRD / Factur-X / XRechnung XML from a PDF and saves it to disk.
Rückgabe: True if the XML was written. False on failure with Last_Error / Last_Error_Code: 22 parameter missing, 23 input not found, 24 XML file exists, 25 could not extract XML, 26 could not save XML.
Deklaration
Public Function ExportZUGFeRDXML2Disk(ByVal InputPDFPath As String, ByVal OutputXMLPath As String, Optional ByVal Licensekey As String = "", Optional ByVal DoOverwrite As Boolean = False) As Boolean
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
InputPDFPath | String | erforderlich | Path of the PDF file |
OutputXMLPath | String | erforderlich | Path of the XML file to write |
Licensekey | String | optional (Standard: "") | Optional licence key |
DoOverwrite | Boolean | optional (Standard: False) | True overwrites an existing output file |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
Dim ergebnis = alo.ExportZUGFeRDXML2Disk(InputPDFPath, OutputXMLPath)
Artikel mit ExportZUGFeRDXML2Disk
COM-Schnittstelle
ExportZUGFeRDXML2Disk ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 134 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.