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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 Automatically Export Crystal Report to Excel

Status
Not open for further replies.

kmcclung

Programmer
Nov 20, 2001
120
US
I have a VB6 application that generates several Crystal reports, either manually or automatically depending on the users selection. If they are run automatically, I need to export each of them into Excel spreadsheets. Any ideas?

Thanks in advance!
 
What version of Crystal reports are you using?
What you need to do is Export your output to Excel. I know 8.5 has that option.
 
I'm using Crystal v.8 and I figured it out finally.

This is what I did in case it will help others....

crpReports.Destination = crptToFile
crpBMLReports.PrintFileName = "c:\reports\" & sFileName & ".xls"
crpBMLReports.PrintFileType = crptExcel50
crpBMLReports.PrintReport
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top