Home All Groups Group Topic Archive Search About

Problem sending Report as EMail - wrong attach. name "untitled.txt"

Author
9 Mar 2006 10:58 AM
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!!!!! :o)

Greeting Matthias

Author
3 May 2006 9:07 AM
Bojan Kuhar
Hi Matthias,

Did you get around this? I'm having the same problem with the application
I've converted to VS2005.

Regards

Bojan
Author
3 May 2006 11:19 AM
Matthias Haberkorn
Hi Bojan,

I did this: Make a little Sub -> export the Report as PDF to FileSystem ->
Make a new mail -> Attach the PDF. Works fine :o)

Greetings Matthias

Show quoteHide quote
"Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im Newsbeitrag
news:F508DA06-1E54-4010-9413-CD83FBE590F5@microsoft.com...
> Hi Matthias,
>
> Did you get around this? I'm having the same problem with the application
> I've converted to VS2005.
>
> Regards
>
> Bojan
>
Author
3 May 2006 11:43 AM
Bojan Kuhar
Thanks,

I'll do the same. It amazes me that there are no more posts on this.

Regards

Bojan

Show quoteHide quote
"Matthias Haberkorn" wrote:

> Hi Bojan,
>
> I did this: Make a little Sub -> export the Report as PDF to FileSystem ->
> Make a new mail -> Attach the PDF. Works fine :o)
>
> Greetings Matthias
>
> "Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im Newsbeitrag
> news:F508DA06-1E54-4010-9413-CD83FBE590F5@microsoft.com...
> > Hi Matthias,
> >
> > Did you get around this? I'm having the same problem with the application
> > I've converted to VS2005.
> >
> > Regards
> >
> > Bojan
> >
>
>
>
Author
3 May 2006 11:46 AM
Matthias Haberkorn
Yes ;o) But now we have good Sub's ;o)

Show quoteHide quote
"Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im Newsbeitrag
news:251FE5B8-CBEC-493A-B4F3-055C0E803A52@microsoft.com...
> Thanks,
>
> I'll do the same. It amazes me that there are no more posts on this.
>
> Regards
>
> Bojan
>
> "Matthias Haberkorn" wrote:
>
>> Hi Bojan,
>>
>> I did this: Make a little Sub -> export the Report as PDF to
>> FileSystem ->
>> Make a new mail -> Attach the PDF. Works fine :o)
>>
>> Greetings Matthias
>>
>> "Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im
>> Newsbeitrag
>> news:F508DA06-1E54-4010-9413-CD83FBE590F5@microsoft.com...
>> > Hi Matthias,
>> >
>> > Did you get around this? I'm having the same problem with the
>> > application
>> > I've converted to VS2005.
>> >
>> > Regards
>> >
>> > Bojan
>> >
>>
>>
>>
Author
4 May 2006 5:25 AM
Bojan Kuhar
Hi Matthias,

I've hit the wall. Maybe you can help me.

It is easy to send mail via SMTP using System.Net webspace but I need to use
MAPI because sent mail has to appear in the Outlook "Sent Items" folder.

Regards

Bojan




Show quoteHide quote
"Matthias Haberkorn" wrote:

> Yes ;o) But now we have good Sub's ;o)
>
> "Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im Newsbeitrag
> news:251FE5B8-CBEC-493A-B4F3-055C0E803A52@microsoft.com...
> > Thanks,
> >
> > I'll do the same. It amazes me that there are no more posts on this.
> >
> > Regards
> >
> > Bojan
> >
> > "Matthias Haberkorn" wrote:
> >
> >> Hi Bojan,
> >>
> >> I did this: Make a little Sub -> export the Report as PDF to
> >> FileSystem ->
> >> Make a new mail -> Attach the PDF. Works fine :o)
> >>
> >> Greetings Matthias
> >>
> >> "Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im
> >> Newsbeitrag
> >> news:F508DA06-1E54-4010-9413-CD83FBE590F5@microsoft.com...
> >> > Hi Matthias,
> >> >
> >> > Did you get around this? I'm having the same problem with the
> >> > application
> >> > I've converted to VS2005.
> >> >
> >> > Regards
> >> >
> >> > Bojan
> >> >
> >>
> >>
> >>
>
>
>
Author
5 May 2006 3:06 PM
Matthias Haberkorn
look at here:

http://www.c-sharpcorner.com/UploadFile/casperboekhoudt/SendingEmailsThroughOutlook12052005000124AM/SendingEmailsThroughOutlook.aspx


Show quoteHide quote
"Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im Newsbeitrag
news:C62FC925-BBB1-450E-B91B-37D6B727FAA2@microsoft.com...
> Hi Matthias,
>
> I've hit the wall. Maybe you can help me.
>
> It is easy to send mail via SMTP using System.Net webspace but I need to
> use
> MAPI because sent mail has to appear in the Outlook "Sent Items" folder.
>
> Regards
>
> Bojan
>
>
>
>
> "Matthias Haberkorn" wrote:
>
>> Yes ;o) But now we have good Sub's ;o)
>>
>> "Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im
>> Newsbeitrag
>> news:251FE5B8-CBEC-493A-B4F3-055C0E803A52@microsoft.com...
>> > Thanks,
>> >
>> > I'll do the same. It amazes me that there are no more posts on this.
>> >
>> > Regards
>> >
>> > Bojan
>> >
>> > "Matthias Haberkorn" wrote:
>> >
>> >> Hi Bojan,
>> >>
>> >> I did this: Make a little Sub -> export the Report as PDF to
>> >> FileSystem ->
>> >> Make a new mail -> Attach the PDF. Works fine :o)
>> >>
>> >> Greetings Matthias
>> >>
>> >> "Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im
>> >> Newsbeitrag
>> >> news:F508DA06-1E54-4010-9413-CD83FBE590F5@microsoft.com...
>> >> > Hi Matthias,
>> >> >
>> >> > Did you get around this? I'm having the same problem with the
>> >> > application
>> >> > I've converted to VS2005.
>> >> >
>> >> > Regards
>> >> >
>> >> > Bojan
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>
Author
6 May 2006 10:46 AM
Bojan Kuhar
That will do.

Thanks very much.
Author
8 May 2006 8:56 AM
Matthias Haberkorn
If you have an already finished code, let me know ;o)

Greetings Matthias

Show quoteHide quote
"Bojan Kuhar" <BojanKu***@discussions.microsoft.com> schrieb im Newsbeitrag
news:E8122C0B-010C-444B-B02B-1D6304E09970@microsoft.com...
> That will do.
>
> Thanks very much.
>