Hi All,
If i have a mail which is encrypted and does not have any attachment then DXL Exporter does not fail and everything goes well. As soon as I put an attachment in the mail which is encrypted and then DXLExporter fails and the error given is “DXLExporter operation failed”. Here is the function which does the exporting in VB:
Private Sub BuildDXLFile(note As Variant, ByVal OutputFilePath As String)
On Error GoTo ErrHandler
'Dim db As NotesDatabase
'Dim ndc As NotesDocumentCollection
'Dim note As NotesDocument
Dim vItemText As Variant
Const defaultDocType$ = "DXL"
Dim DocType$
Dim SaveAsNewStatus%
Dim name2Show As String
Dim result As Variant
Dim fileCount%, fileNum%
Dim cname As Variant
Dim stream As Variant
Dim exporter As Variant
’
’ Process the selected documents
’
Dim oSession As Variant
Set oSession = moNotesDB.Parent
Set stream = oSession.CreateStream
Set exporter = oSession.CreateDXLExporter
'Open xml file
If Not stream.Open(OutputFilePath) Then
MsgBox "Cannot open " & OutputFilePath, , "Error"
Exit Sub
End If
Call stream.Truncate
'Export current document as DXL
exporter.OutputDOCTYPE = False
Call exporter.SetInput(note)
Call exporter.SetOutput(stream)
Call exporter.Process
stream.Close
ErrHandler:
MsgBox Error$ & "in BuildDXLFile"
End Sub
Please help on this if somebody has an idea about the problem.
Regards
Ram Manohar