M
Matthias Haberkorn
Hello,
I haved used VS2003 and send some Reports as EMail attachmend with vb.net.
The code looks like this:
Dim pdfOpts As PdfRtfWordFormatOptions = _
ExportOptions.CreatePdfRtfWordFormatOptions()
Dim MailOptions As MicrosoftMailDestinationOptions = _
ExportOptions.CreateMicrosoftMailDestinationOptions()
Dim exportOpts As ExportOptions = New ExportOptions
pdfOpts.UsePageRange = False
exportOpts.ExportFormatOptions = pdfOpts
With MailOptions
.MailToList = Vorgang_INFO.Druck_EMail_Adresse
.MailMessage = Vorgang_INFO.Druck_EMail_Body
.MailSubject = Vorgang_INFO.Druck_EMail_Betreff
End With
exportOpts.ExportDestinationOptions = MailOptions
exportOpts.ExportDestinationType = ExportDestinationType.MicrosoftMail
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat
rep.Export(exportOpts)
Now, I am using VS2005 and the attached File in the generated Mail in named
"untitled.txt" - but it should be "Export.pdf" what happens here from VS2003
to VS2005? Heeeeeeeeeeelp!!!!!
)
Greeting Matthias
I haved used VS2003 and send some Reports as EMail attachmend with vb.net.
The code looks like this:
Dim pdfOpts As PdfRtfWordFormatOptions = _
ExportOptions.CreatePdfRtfWordFormatOptions()
Dim MailOptions As MicrosoftMailDestinationOptions = _
ExportOptions.CreateMicrosoftMailDestinationOptions()
Dim exportOpts As ExportOptions = New ExportOptions
pdfOpts.UsePageRange = False
exportOpts.ExportFormatOptions = pdfOpts
With MailOptions
.MailToList = Vorgang_INFO.Druck_EMail_Adresse
.MailMessage = Vorgang_INFO.Druck_EMail_Body
.MailSubject = Vorgang_INFO.Druck_EMail_Betreff
End With
exportOpts.ExportDestinationOptions = MailOptions
exportOpts.ExportDestinationType = ExportDestinationType.MicrosoftMail
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat
rep.Export(exportOpts)
Now, I am using VS2005 and the attached File in the generated Mail in named
"untitled.txt" - but it should be "Export.pdf" what happens here from VS2003
to VS2005? Heeeeeeeeeeelp!!!!!

Greeting Matthias