473,765 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Record SelectionFormul a = mSelection

' myReport.Export Options.ExportF ormatType =
ExportFormatTyp e.PortableDocFo rmat

myReport.Export Options.ExportF ormatType = ExportFormatTyp e.HTML32

Dim formatOptions As CrystalDecision s.Shared.HTMLFo rmatOptions = _

New CrystalDecision s.Shared.HTMLFo rmatOptions

formatOptions.H TMLHasPageNavig ator = False

formatOptions.H TMLEnableSepara tedPages = False

formatOptions.U sePageRange = False

formatOptions.H TMLFileName = "MyName.HTM "

formatOptions.H TMLBaseFolderNa me = "C:\vs2005\temp doc"

myReport.Export Options.ExportF ormatOptions = formatOptions

myReport.Export Options.ExportD estinationType =
ExportDestinati onType.Microsof tMail

'myreport.

Dim mailOptions As CrystalDecision s.Shared.Micros oftMailDestinat ionOptions =
_

New CrystalDecision s.Shared.Micros oftMailDestinat ionOptions

mailOptions.Mai lSubject = "My HTML Report- via Email"

mailOptions.Mai lToList = "my****@jaco.co m"

mailOptions.Mai lMessage = "This is the message"

myReport.Export Options.ExportD estinationOptio ns = mailOptions

myReport.Export ()

Catch ex As Exception

MsgBox(ex.ToStr ing)

End Try
May 23 '06 #1
0 1565

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

Similar topics

1
4949
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 windows 2000/NT server. For a given user (who is Windows NT user) in the same Windows 2000
1
2017
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 server, then the report containing the data can be viewed within the browser using a Crystal Viewer. My experience with Crystal is limited to VB client apps, so this is the limit of my understanding of precisely how this works in the ASP world. Once...
0
2608
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 still unanswered. I think I'm cursed. I originally created a crystal report which connects to a sql server server db on the same dev machine and it worked just fine. I tried to move it to another computer, but now I have to connect to an Oracle...
0
1595
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 Problem :
1
1845
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 in PDF format. Up to this point, I've had no problems with the application in both the development environment (local workstation with Windows 2K) and deployed in production (on a Windows 2003 Server) both with .NET Framework 1.1.
1
1482
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 fine if I test it in a VB.Net windows app. But when I run it in ASPX it keeps giving me this error: Error detected by export DLL: MAPI services not installed or not configured I'm new to web development and hence must have missed something...
9
3048
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 = _ ExportOptions.CreatePdfRtfWordFormatOptions() Dim MailOptions As MicrosoftMailDestinationOptions = _ ExportOptions.CreateMicrosoftMailDestinationOptions() Dim exportOpts As ExportOptions = New ExportOptions
1
2355
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 Visual Studio .NET The problem is that the e-mail looks just fine in e-mail clients such as Microsoft Outlook, howeverer, if i try to forward the e-mail it looks all bad, all aligned to the left and it looses all format. The same thing happens...
0
2047
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 "Destination" dropdown. How do I get it back? I'm using VS 2005. CR reports version 10 Thanks Bill
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.