LoadPDF2Mem
Methode (Function) · gibt Boolean zurück
LoadPDF2Mem ist eine Methode der Klasse Aloaha_ZUGFeRD.XML im Aloaha ZUGFeRD SDK.
Beschreibung (Originaltext der englischen SDK-Dokumentation): Selects a PDF file for subsequent attachment access (AttachmentCount, AttachmentBytes, AttachmentName, SaveAttachment). Previously loaded data is released first (CloseAll).
Rückgabe: True if the file exists and a licence is available; False otherwise (see Last_Error).
Deklaration
Public Function LoadPDF2Mem(ByVal PDFFilePath As String, Optional ByVal OwnwerPass As String = "", Optional ByVal LicenseKey As String = "") As Boolean
Parameter
| Name | Typ | Pflicht | Beschreibung |
|---|---|---|---|
PDFFilePath | String | erforderlich | Path of the PDF file |
OwnwerPass | String | optional (Standard: "") | Owner password of the PDF, if protected |
LicenseKey | String | optional (Standard: "") | Licence key; if given it is stored on the object |
Aufruf (VB.NET)
Dim alo As New Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, False, "IHR-LIZENZSCHLUESSEL")
Dim PDFFilePath As String = ""
If Not alo.LoadPDF2Mem(PDFFilePath) Then
Console.WriteLine("Fehler: " & alo.Last_Error)
End If
Aufruf (C#)
var alo = new Aloaha_ZUGFeRD.XML(Aloaha_ZUGFeRD.iXML.ZUGFeRDProfile.comfort, false, "IHR-LIZENZSCHLUESSEL");
string pdfFilePath = "";
if (!alo.LoadPDF2Mem(pdfFilePath))
{
Console.WriteLine("Fehler: " + alo.Last_Error);
}
Artikel mit LoadPDF2Mem
COM-Schnittstelle
LoadPDF2Mem ist Mitglied der Schnittstelle Aloaha_ZUGFeRD.iXML (Position 122 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.