CreateDocFromXML
Methode (Function) · gibt Boolean zurück
CreateDocFromXML ist eine Methode der Klasse Aloaha_ZUGFeRD.XML in der Aloaha ZUGFeRD SDK.
Beschreibung (aus der SDK-Dokumentation): Creates a visual invoice (DOCX or PDF) from a ZUGFeRD / Factur-X / XRechnung XML file using a DOCX template. If the output is a PDF, the XML is also embedded into it (PDF/A-3 hybrid invoice) via MergeXMLIntoPDF.
Rückgabe: True if the output file was created; False otherwise (see Last_Error).
Hinweis: Sends a licence ping.
Deklaration
Public Function CreateDocFromXML(ByVal XMLPath As String, ByVal OutputDocPath As String, Optional ByRef DocxTemplatePath As String = "", Optional ByVal Licensekey As String = "", Optional ByVal DoOverWrite As Boolean = True, Optional ByVal AdditionalAttachment As String = "", Optional ByVal ConverDecimalDot2Comma As Boolean = False) As Boolean
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
XMLPath | String | erforderlich | Path of the invoice XML file |
OutputDocPath | String | erforderlich | Path of the output file; extension must be .docx or .pdf |
DocxTemplatePath | String | optional (Standard: "") | DOCX template (input/output). If empty or not existing, the DocXTemplate_Path property is used; if that is empty too, the built-in template is written to the temp folder. The path actually used is returned here |
Licensekey | String | optional (Standard: "") | Licence key; if empty the key already set on the object or the global key is used |
DoOverWrite | Boolean | optional (Standard: True) | True allows overwriting an existing output file (default True) |
AdditionalAttachment | String | optional (Standard: "") | Optional path of an additional file to embed (PDF output only) |
ConverDecimalDot2Comma | Boolean | optional (Standard: False) | True writes decimal numbers with comma as decimal separator |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, LicenseKey)
' …
Dim ergebnis = alo.CreateDocFromXML(XMLPath, OutputDocPath)
Artikel mit CreateDocFromXML
ZUGFeRD XML direkt nach PDF konvertieren
Wie hier schon geschrieben ist es nun möglich ZUGFeRD konforme XML Dateien direkt nach ZUGFeRD konformen PDF/A Dateien zu konvertieren. Wie einfach das geht können Sie im YouTube Video für unsere…
XRechnungs-XML direkt in eine Winword-Datei oder ein PDF-Dokument umwandeln
Ein wenig beachtetes Feature des Aloaha ZUGFeRD Toolkits ist die Möglichkeit, ein Winword-DOCX-Template mit Werten aus dem ZUGFeRD-XML zu „befüllen“ und anschließend in ein ZUGFeRD PDF/A umzuwandeln.…
ZUGFeRD XML mit DOCX Template zusammenführen und in ZUGFeRD PDF/A umwandeln
Mit dem Aloaha ZUGFeRD Toolkit ist es möglich, ein Winword-DOCX-Template mit Werten aus dem ZUGFeRD-XML zu “befüllen” und danach in ein ZUGFeRD PDF/A umzuwandeln. Das kann zum Beispiel auch…
Word-Vorlage für ZUGFeRD-PDF/A: Platzhalter und BT-Nummern
Neben dem Einbetten von XML in ein vorhandenes PDF bietet die Aloaha ZUGFeRD SDK einen zweiten Weg zur hybriden E-Rechnung: Sie gestalten Ihr Rechnungslayout einmal als Word-Vorlage (DOCX) mit Platzhaltern . Die SDK …