I have a VB 6.0 application using Crystal Reports the came with VB 6. I have recently upgraded my PC to Service Pack 4 for VB 6 and MDAC 2.5. My program either prints a file (that still works) displays a grid (that still works) or would save the file to the users hard drive (not working) Here is the code:
If Dir(strTxtfile) <> "" Then Kill strTxtfile
CrystalReport1.Destination = crptToFile
CrystalReport1.PrintFileType = crptWinWord
CrystalReport1.PrintFileName = "c:\selected.doc"
CrystalReport1.Connect = "c:\RESULTS2.MDB"
CrystalReport1.DataFiles(0) = "c:\RESULTS2.MDB"
CrystalReport1.ReportFileName = permpath & "\enc2.rpt"
CrystalReport1.Action = 1
and it is failing on the .action line with the error
Run-time error 20540
Missing or out-of-date export DLL
I have reinstalled everything - anyone have any suggestions?
If Dir(strTxtfile) <> "" Then Kill strTxtfile
CrystalReport1.Destination = crptToFile
CrystalReport1.PrintFileType = crptWinWord
CrystalReport1.PrintFileName = "c:\selected.doc"
CrystalReport1.Connect = "c:\RESULTS2.MDB"
CrystalReport1.DataFiles(0) = "c:\RESULTS2.MDB"
CrystalReport1.ReportFileName = permpath & "\enc2.rpt"
CrystalReport1.Action = 1
and it is failing on the .action line with the error
Run-time error 20540
Missing or out-of-date export DLL
I have reinstalled everything - anyone have any suggestions?