|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem sending Report as EMail - wrong attach. name "untitled.txt"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 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 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 > 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 > > > > > 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 >> > >> >> >> 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 > >> > > >> > >> > >> > > > 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 >> >> > >> >> >> >> >> >> >> >> >> 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. >
Defining data types for fields, when you a create a file
Print pdf from Internet Explorer using VB .NET need ideas on multi threaded db update Extending the TreeNode - - -> HELP! close Form1 & open Form2 "Specified cast is not valid" converting from object A to object B convert string array to long array Best Way to Import Fixed Width Files XML Help wanted Copying a project... |
|||||||||||||||||||||||