Hallo Herr Richter, hallo Gemeinde,
ich bekomme das XML einfach nicht eingebettet.
Anbei eines der VB Beispiele das problemlos mit LL30 läuft.
(Erstellen einer Datei als PDF).
Aber das anhängen der XML geht nicht.
Hat jemand noch einen Tipp?
Gruß Frank
Option Explicit
Private Sub Form_Load()
Data1.DatabaseName = “C:\Program Files (x86)\combit\LL13\Programmierbare Beispiele und Deklarationen\Visual Basic\simple.mdb”
End Sub
Private Sub Form_Activate()
Dim ret%
Form1.Data1.Recordset.MoveFirst
ret% = ListLabel1.Print(0, LL_PROJECT_LIST, App.Path & “\simple.lst”, 0, LL_PRINT_EXPORT, LL_BOXTYPE_STDWAIT, hWnd, “Drucke liste”, False, Environ$(“temp”))
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “PDF.ZUGFeRDXmlPath”, App.Path & “\factur-x.xml”)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Path”, App.Path)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.File”, “export.pdf”)
Unload Me
End Sub
Private Sub ListLabel1_CmndSetPrintOptions(ByVal nUserData As Long, pnPrintMethodOptionFlags As ListLabel.LlCmndSetPrintOptionsConstants)
Dim ret%
ret% = ListLabel1.LlPrintSetOptionString(LL_PRNOPTSTR_EXPORT, “PDF”)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Path”, App.Path)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.File”, “export.pdf”)
ret% = ListLabel1.LlXSetParameter(LL_LLX_EXTENSIONTYPE_EXPORT, “PDF”, “Export.Quiet”, “1”)
End Sub
Private Sub ListLabel1_CmndDefineFields(ByVal nUserData As Long, ByVal bDummy As Long, pnProgressInPerc As Long, pbLastRecord As Long)
Dim i As Integer
Dim para As Long
Dim content$, a!
For i = 0 To Form1.Data1.Recordset.Fields.Count - 1 ’ Wiederholung für alle Felder eines Datensatzes
Select Case Form1.Data1.Recordset.Fields(i).Type
Case 3, 4, 6, 7: para = LL_NUMERIC: content$ = Form1.Data1.Recordset.Fields(i)
Case 8: para = LL_DATE_MS: a! = CDate(Form1.Data1.Recordset.Fields(i)): content$ = a!:
Case 1: para = LL_BOOLEAN: content$ = Form1.Data1.Recordset.Fields(i)
Case Else: para = LL_TEXT: content$ = Form1.Data1.Recordset.Fields(i)
End Select
Dim nRet As Integer
nRet = Form1.ListLabel1.LlDefineVariableExt(Form1.Data1.Recordset.Fields(i).Name, content$, para)
Next i
If bDummy = 0 Then
pnProgressInPerc = Form1.Data1.Recordset.PercentPosition
Form1.Data1.Recordset.MoveNext
If Form1.Data1.Recordset.EOF = True Then pbLastRecord = 1
End If
End Sub