473,379 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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

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.CreateMicrosoftMailDestinationOption s()
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
Mar 9 '06 #1
9 3022
Hi Matthias,

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

Regards

Bojan

May 3 '06 #2
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" <Bo********@discussions.microsoft.com> schrieb im Newsbeitrag
news:F5**********************************@microsof t.com...
Hi Matthias,

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

Regards

Bojan

May 3 '06 #3
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" <Bo********@discussions.microsoft.com> schrieb im Newsbeitrag
news:F5**********************************@microsof t.com...
Hi Matthias,

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

Regards

Bojan


May 3 '06 #4
Yes ;o) But now we have good Sub's ;o)

"Bojan Kuhar" <Bo********@discussions.microsoft.com> schrieb im Newsbeitrag
news:25**********************************@microsof t.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" <Bo********@discussions.microsoft.com> schrieb im
Newsbeitrag
news:F5**********************************@microsof t.com...
> Hi Matthias,
>
> Did you get around this? I'm having the same problem with the
> application
> I've converted to VS2005.
>
> Regards
>
> Bojan
>


May 3 '06 #5
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" <Bo********@discussions.microsoft.com> schrieb im Newsbeitrag
news:25**********************************@microsof t.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" <Bo********@discussions.microsoft.com> schrieb im
Newsbeitrag
news:F5**********************************@microsof t.com...
> Hi Matthias,
>
> Did you get around this? I'm having the same problem with the
> application
> I've converted to VS2005.
>
> Regards
>
> Bojan
>


May 4 '06 #6
Hm, I don't use MAPI because the securety-message from Outlook is really
f....... I use SMTP to, but it would be usefull to use MAPI and/or SMTP... I
can send you an small sub/function in 1 day ...

greetings matthias

"Bojan Kuhar" <Bo********@discussions.microsoft.com> schrieb im Newsbeitrag
news:C6**********************************@microsof t.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" <Bo********@discussions.microsoft.com> schrieb im
Newsbeitrag
news:25**********************************@microsof t.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" <Bo********@discussions.microsoft.com> schrieb im
>> Newsbeitrag
>> news:F5**********************************@microsof t.com...
>> > Hi Matthias,
>> >
>> > Did you get around this? I'm having the same problem with the
>> > application
>> > I've converted to VS2005.
>> >
>> > Regards
>> >
>> > Bojan
>> >
>>
>>
>>


May 4 '06 #7
look at here:

http://www.c-sharpcorner.com/UploadF...ghOutlook.aspx
"Bojan Kuhar" <Bo********@discussions.microsoft.com> schrieb im Newsbeitrag
news:C6**********************************@microsof t.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" <Bo********@discussions.microsoft.com> schrieb im
Newsbeitrag
news:25**********************************@microsof t.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" <Bo********@discussions.microsoft.com> schrieb im
>> Newsbeitrag
>> news:F5**********************************@microsof t.com...
>> > Hi Matthias,
>> >
>> > Did you get around this? I'm having the same problem with the
>> > application
>> > I've converted to VS2005.
>> >
>> > Regards
>> >
>> > Bojan
>> >
>>
>>
>>


May 5 '06 #8
That will do.

Thanks very much.

May 6 '06 #9
If you have an already finished code, let me know ;o)

Greetings Matthias

"Bojan Kuhar" <Bo********@discussions.microsoft.com> schrieb im Newsbeitrag
news:E8**********************************@microsof t.com...
That will do.

Thanks very much.

May 8 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: MLH | last post by:
Is it good programming practice to delete existing file before running Open "c:\MyFile.txt" For Output As #1 ??? IE, I already have a file c:\MyFile.txt on disk and I launch Open "c:\MyFile.txt"...
1
by: Jav | last post by:
Asp.Net 2.0 When I drag a Multiview control from the ToolBox onto a WebPartZone, The MultiView displays a title of Untitled immediately above the Multiview title bar. When I show the form in the...
1
by: John Layton | last post by:
Hi there, Does anyone know if there's a built-in way to read a ".txt" based resources file (one that's converted to a ".resources" file by "resgen.exe" at build time). I need to read/write the...
3
by: John Torville | last post by:
Hi there, Does anyone know how to add ".txt" resources file to a C# project in Visual Studio. It should compile down to an embedded ".resources" file the same way as a ".resx" file. Thanks.
5
by: John Nagle | last post by:
This bug, " robotparser interactively prompts for username and password", has been open since 2003. It killed a big batch job of ours last night. Module "robotparser" naively uses "urlopen" to...
5
by: John Nagle | last post by:
Python's "robots.txt" file parser may be misinterpreting a special case. Given a robots.txt file like this: User-agent: * Disallow: // Disallow: /account/registration Disallow: /account/mypro...
4
by: GavReynolds | last post by:
Hi All! I am using Javascript to export some content in a popup (in this case, just 5 simple words) to a text file. This works fine and the user can save the text file. Upon opening the file,...
2
by: John Nagle | last post by:
For some reason, Python's parser for "robots.txt" files doesn't like Wikipedia's "robots.txt" file: False The Wikipedia robots.txt file passes robots.txt validation, and it doesn't disallow...
2
by: ishakarthika | last post by:
i have a .txt file which contains line of string like the below format |111|34 sdddd| ppppp| A/C| 32| sadfd| |4324|23 mmm| yyyyy| A/C|32| fdfffdfd| the sixth column is the no...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.