Beschreibung:
Exportiert den aktuellen Datensatz mit den ausgewählten Parametern als PDF-Datei im ZUGFeRD-Format.
VBScript:
Dim sZUGFeRDXmlPath
sZUGFeRDXmlPath = "C:\temp\ZUGFeRD-invoice.xml"
Dim sExportTarget, sExportOptions
sExportTarget = "PDF"
sExportOptions = "PDF|PDF.ZUGFeRDXmlPath=" & sZUGFeRDXmlPath
Call oCurrentRecord.PrintReport(sExportTarget & ":" & sExportOptions, sProjectFile, bSilent, sExportPath & sExportFileName, bUseModalPreviewWindow)
C#-Script:
string ZUGFeRDXmlPath = @"C:\temp\ZUGFeRD-invoice.xml";
string exportTarget = "PDF";
string exportOptions = "PDF|PDF.ZUGFeRDXmlPath=" + ZUGFeRDXmlPath;
currentRecord.PrintReport(exportTarget + ":" + exportOptions, projectFile, silent, exportPath + exportFileName, useModalPreviewWindow);
TypeScript:
import {
cRM,
Record
} from "./sdk/combitCRM.SDK.WindowsClient.v13";
const currentRecord : Record = cRM.ActiveView.CurrentRecord;
const ZUGFeRDXmlPath : string = `C:\\temp\\ZUGFeRD-invoice.xml`;
const exportTarget : string = "PDF";
const exportOptions : string = "PDF|PDF.ZUGFeRDXmlPath=" + ZUGFeRDXmlPath;
currentRecord.PrintReport(exportTarget + ":" + exportOptions, projectFile, silent, exportPath + exportFileName, useModalPreviewWindow);