I have this code in a VCX that allows the user to select the destination for the report. .oCrystal and .oReport are custom properties of the VCX.
.oCrystal = CreateObject("Crystal.CRPE.Application")
.oReport = .oCrystal.OpenReport(<
>)
if !empty(.cSelectFormula)
.oReport.RecordSelectionFormula = .cSelectFormula
endif
Do Case
Case .optDestination.Value = 2 && preview
.oReport.Preview
Case .optDestination.Value = 1 && current printer
.oReport.PrintOut(.f.)
EndCase
>I don't really understand the automation server. Can you tell me the major differences between it and the OCX?