Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to create mail report using Crystal Report 6

Posted on 2003-10-28
8
Medium Priority
?
214 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
5 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 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 101

Expert Comment

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

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 9641989
Try using

cr_Report.EmailToList = "List of addresses"

mlmcc
0
 
LVL 101

Expert Comment

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

mlmcc
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

824 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