Solved

How to create mail report using Crystal Report 6

Posted on 2003-10-28
8
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

751 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