Solved

How to create mail report using Crystal Report 6

Posted on 2003-10-28
8
204 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
Comment Utility
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
Comment Utility
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
Comment Utility
The RDC is not available for CR4.6.  It was added in CR8.

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Try using

cr_Report.EmailToList = "List of addresses"

mlmcc
0
 
LVL 100

Expert Comment

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

mlmcc
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now