Autor Thema: 💣 ☠☠-DXL - Import funktioniert nicht  (Gelesen 2310 mal)

Offline jo@chim

  • Aktives Mitglied
  • ***
  • Beiträge: 246
  • Geschlecht: Männlich
Ich will eine vorher exportierte DXL-Datei importieren... gibt aber "DXL-Importer Operation failed".
Was mach ich falsch?

Code
Sub test(strFormName As String)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim instream As NotesStream
Dim importer As NotesDXLImporter
dxlpath$="d:\" & strFormName & ".xml"
Set db = session.CurrentDatabase
Set importer = session.CreateDXLImporter
Set instream = session.CreateStream
If Not instream.Open(dxlpath$) Then
MessageBox "Cannot open DXL file",, dxlpath$
Exit sub
End If
If instream.Bytes = 0 Then
MessageBox "DXL file did not exist or was empty",, dxlpath$
End If
Call importer.SetInput(instream)
Call importer.SetOutput(db)
Call importer.Process
Call instream.close
End Sub
Gruss,
Achim
-------------------
IBM Certified Advanced Application Developer Lotus Notes and Domino 7

Offline pram

  • Gold Platin u.s.w. member:)
  • *****
  • Beiträge: 1.170
  • Geschlecht: Männlich
    • Foconis Object Framework
Re: 💣 ☠☠-DXL - Import funktioniert nicht
« Antwort #1 am: 24.01.15 - 09:32:06 »
Bau mal einen Errorhandler ein und gib dir "importer.log" aus
Roland Praml

IBM Certified Application Developer - Lotus Notes and Domino 8
Ich verwende das Foconis Object Framework

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz