WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Crystal Reports

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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

Article ID:   W15609
File Created: 2003:05:13:11:29:12
Last Updated: 2003:05:13:11:29:12