Crystal Reports Recalc and Print
Keywords: Crystal Reports Recalc and Print
GOT IT. This will load, recalculate and print the report. Any parameter fields are automatically prompted for.Only 8 lines of code, but they were hard won.
(Viewing the report on screen is another kettle of fish. maybe later. much.)
cra = objectopen("CrystalRuntime.Application") cra.LogOnServer("PDSODBC.DLL","datasourcename","dbname","username","password") crr = cra.OpenReport("H:\COMPANY\CR\Report2.rpt") crr.DiscardSavedData() crr.PrintOut() objectclose(crr) objectclose(cra) exit