|
-
Oct 4th, 2007, 03:23 AM
#1
Thread Starter
Hyperactive Member
email
how can i send emial of crystal repot like exporting to report
-
Oct 4th, 2007, 08:40 AM
#2
Re: email
There would be a couple of steps involved here.
Saveing the file to disk
Attaching it to an email message
Are you familiar with saving a report file to disk?
Do you have code that programmtically creates and sends an email message?
Are you looking for one of these or both of them?
-
Oct 4th, 2007, 11:33 AM
#3
Re: email
The Crystal runtime library has the ability to Export a report into several formats and to then Email that file.
Code:
With objReport.ExportOptions
.FormatType = crEFTPortableDocFormat
.DestinationType = crEDTEMailMAPI
.MailSubject = "Testing"
.MailToList = "some_email_address"
.MailMessage = "Hello World"
End With
objReport.DisplayProgressDialog = False
objReport.Export False
-
Oct 5th, 2007, 12:23 AM
#4
Thread Starter
Hyperactive Member
Re: email
Like Export Report button in Crystal Viewer . I want a button for Email Report and after the selection the report will send a attachedment to the given email id.
-
Oct 15th, 2007, 05:24 AM
#5
Thread Starter
Hyperactive Member
Re: email
Hi
Email is sending properly but the report converted to .pdf is not done .It send attachment as untitled.txt instead of untitled.pdf
Pls guide how to solve this problem..
1. File name should be given as crystal report name
2. Export to .PDF should be proper
Code:
Dim ExportOptions As New ExportOptions
Dim EMailOptions As New MicrosoftMailDestinationOptions
Try
ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
ExportOptions.ExportDestinationType = ExportDestinationType.MicrosoftMail
EMailOptions.MailToList = txtEmailId.Text
EMailOptions.MailSubject = "Company Detail Information"
EMailOptions.MailMessage = "The Company Detail Information Report is Attached in PDF format"
ExportOptions.ExportDestinationOptions = EMailOptions
CrReport.Export(ExportOptions)
Catch ex As Exception
MsgBox(ex.Message)
End Try
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|