Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want to schedule cystal report8

Status
Not open for further replies.

AnandMishra

Programmer
Jul 12, 2000
39
US
I created roughtly 10 reports for company. All are working fine.

Problem is that daily morning i have to open the report and refresh the data to populate new data. It ia realy pain. Is there any way to schedule the report and populate new data from background? so morning report with new data is ready for manager.

Thanks for your help....

Anand
Anand
anandm@entcomm.com

 
I use a Visual Basic routine that works stand alone in VB or as part of a Access database. The routine opens the original report, refreshes the data, and then saves the report in a different folder. That way I don't have to worry about damage to the original report.

Dim Rs As Recordset
Dim strStartDirectory As String
Dim strEndDirectory As String
Dim strFile As String
Dim crpApplication As CRPEAuto.Application
Dim crpReport As CRPEAuto.Report
Set crpApplication = CreateObject("Crystal.CRPE.Application")
Set crpReport = crpApplication.OpenReport(strStartDirectory & "\" & Rs!ReportName)
crpReport.DiscardSavedData
crpReport.ExportOptions.DiskFileName = strEndDirectory & "\" & Rs!ReportName
crpReport.ExportOptions.DestinationType = crEDTDiskFile
crpReport.ExportOptions.FormatType crEFTCrystalReport
crpReport.Export (False)

I hope this helps.
Harry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top