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 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
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
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
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 >
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 >
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 >> > >> >> >>
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 >> > >> >> >>
That will do.
Thanks very much.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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"...
|
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...
|
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...
|
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.
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
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...
|
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...
| |