Specifiying the name of a Crystal Report being exported out of a VB project to Email.
Posted on 2004-10-01
I have a VB app Using Crystal 8.5 Developer to run and then export a report to mail addresses. Currently the name of the exported file is a number. How do I specifiy what I want the exported reports file name to be? And is it possible to name it the current date?
crptWeeklyBriefing.ExportOptions.DestinationType = crEDTEMailMAPI
crptWeeklyBriefing.ExportOptions.MailToList = "MyName@Yahoo.com"
crptWeeklyBriefing.ExportOptions.MailSubject = "Daily Briefing Report"
crptWeeklyBriefing.ExportOptions.MailMessage = _
"Attached please find the Daily Briefing Report. "
crptWeeklyBriefing.ExportOptions.FormatType = crEFTPortableDocFormat