Solved

How to create mail report using Crystal Report 6

Posted on 2003-10-28
8
205 Views
Last Modified: 2009-07-29
I want to create a mail report using vb 6 and crystal report 6.  First, i passed a group of people id and select a mail and i want to print this mail for these selected people.  How to pass parameter from visual basic to crystal report and to display mail and address for these people in the same report.

Please help me.

0
Comment
Question by:yana8779
  • 4
8 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 9639024
Which version and edition of Crystal?  

How many people will this report be sent to?

Here is code for CR8 using the OCX control

Public WithEvents cr_Report As CrystalReport


    cr_Report.ReportFileName = "FullPathofReport"
    cr_Report.Destination = crptMapi
    cr_Report.EMailSubject = "UCSRD Remarks"
    cr_Report.Action = 1
    cr_Report.Reset

It has properties for addressing the email.

If you plan to use the RDC I have that code but unfortunately the disk is not readable.  I'll post it tomorrow if you wish.


mlmcc
0
 

Author Comment

by:yana8779
ID: 9639292
I used crystal report version 4.6.1.0

maximum people this report will accept are 20 records

if you don't mind i would like to look into your RDC code, so maybe i will apply to my program.
because i never use RDC before this.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 9641215
The RDC is not available for CR4.6.  It was added in CR8.

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 9641989
Try using

cr_Report.EmailToList = "List of addresses"

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 10170872
May have helped but not sure this is worthy as a PAQ.

mlmcc
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question