473,394 Members | 1,759 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,394 software developers and data experts.

Problem sending Crystal report (HTML format) via MAPI

Please forgive me for cross posting. I hope I can get the answer from either
NG.
I was able to export a CR report to PDF to MAPI (using Outlook client) , but
not with HTML format from a .NET application.
In Brian Bischof's book, he warns about the file folder that created by CR
during export to HTML format. I don't know whether this is the case but all
parameters were set to false, meaning it's a simple export to HTML format.

Please take a look at the code below and tell me what I did wrong.

Thanks a million.

Bill
----------
Dim OlType As Type

Dim OutlookApp As Object

Try

myReport.RecordSelectionFormula = mSelection

' myReport.ExportOptions.ExportFormatType =
ExportFormatType.PortableDocFormat

myReport.ExportOptions.ExportFormatType = ExportFormatType.HTML32

Dim formatOptions As CrystalDecisions.Shared.HTMLFormatOptions = _

New CrystalDecisions.Shared.HTMLFormatOptions

formatOptions.HTMLHasPageNavigator = False

formatOptions.HTMLEnableSeparatedPages = False

formatOptions.UsePageRange = False

formatOptions.HTMLFileName = "MyName.HTM"

formatOptions.HTMLBaseFolderName = "C:\vs2005\tempdoc"

myReport.ExportOptions.ExportFormatOptions = formatOptions

myReport.ExportOptions.ExportDestinationType =
ExportDestinationType.MicrosoftMail

'myreport.

Dim mailOptions As CrystalDecisions.Shared.MicrosoftMailDestinationOp tions =
_

New CrystalDecisions.Shared.MicrosoftMailDestinationOp tions

mailOptions.MailSubject = "My HTML Report- via Email"

mailOptions.MailToList = "my****@jaco.com"

mailOptions.MailMessage = "This is the message"

myReport.ExportOptions.ExportDestinationOptions = mailOptions

myReport.Export()

Catch ex As Exception

MsgBox(ex.ToString)

End Try
May 23 '06 #1
0 1545

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

Similar topics

1
by: Suganthi | last post by:
Hi, I have a specific problem while using MAPI for sending the emails from my application. My requirement is as follows. My application will be running either as a service or a process in a...
1
by: Stephanie Stowe | last post by:
I am doing a support rotation for our massive ASP app. We use Crystal Reports / Enterprise. By some magic which I am unfamiliar with Crystal Enterprise allows the creation of a report on the...
0
by: Max | last post by:
Hi wise people, Has anyone encountered the Crystal Reports problem I describe below? If so, how did you solve it? It seems that every article posted on google regarding CR and logon problems is...
0
by: Zoury | last post by:
Hi there ! :O) I'm having a two strange behaviors with Crystal Report which seems to have the same cause.. All the fields used in the reports comes from some SQL Server views. *** 1st...
1
by: Doug Lim | last post by:
I have an ASP.NET application that I've developed using Visual Studio ..NET 2003 and I'm making use of Crystal Reports for .NET that's included to return reports back to the visitor's web browser...
1
by: Tanya | last post by:
I'm writing an ASPX page to automate faxing of a report by exporting a report to a PDF format and Microsoft Mail destination where I inserted a fax number instead of an email address. This works...
9
by: Matthias Haberkorn | last post by:
Hello, I haved used VS2003 and send some Reports as EMail attachmend with vb.net. The code looks like this: Dim pdfOpts As PdfRtfWordFormatOptions = _...
1
by: erPanita | last post by:
Hello.. I'm using the C# class System.Net.Mail.MailMessagein order to send Emails in HTML Format. The HTML body comes from a Crystal Report converted to HTML Format 40 through the Crystal Class from...
0
by: Bill Nguyen | last post by:
I used to be able to have Crystal report send email within a .NET application using "Export" option. Now the option to send mail (Destination MAPI) is no longer available in the Export...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.