Hallo!
Ich erstelle mittels VB.NET ein PDF-File und öffne automatisch das Standard E-Mail Programm mit der erstellten PDF-Datei als Anhang.
Das funktioniert auf meinem Rechner mit OUTLOOK als Standard E-Mail Programm einwandfrei.
Auf einem anderen Rechner mit Windows Live Mail als Standard wird zwar die PDF-Datei erstellt, statt dem Emailprogramm mit Anhang erscheint aber eine Fehlermeldung.
Codeausschnitt:
'AddHandler druckPDF.PrintPage, AddressOf druck_PrintPage
_PDFCreator = New PDFCreator.clsPDFCreator
With _PDFCreator
If .cStart("/NoProcessingAtStartup") = False Then
MsgBox("Can't initialize PDFCreator.", vbCritical + _
vbOKOnly, "PrtPDFCreator")
Exit Sub
End If
.cOption("Autosavedirectory") = strPath & "\\Auftrag"
.cOption("UseAutosave") = 1
.cOption("UseAutosaveDirectory") = 1
.cOption("AutosaveFormat") = 0 ' 0 = PDF
.cOption("AutosaveFilename") = lnr.Text
.cOption("SendEmailAfterAutoSaving") = 1
.cClearCache()
End With
druckPDF.PrinterSettings.PrinterName = "PDFCreator"
druckPDF.Print()
'Wait until the print job has entered the print queue
Do Until _PDFCreator.cCountOfPrintjobs = 1
Application.DoEvents()
Loop
_PDFCreator.cPrinterStop = False
'Wait until PDF creator is finished then release the objects
Do Until _PDFCreator.cCountOfPrintjobs = 0
Application.DoEvents()
Loop
_PDFCreator.cClose()
_PDFCreator = Nothing
Kann mir jemand helfen, warum das mit Windows Live Mail nicht funktioniert?