How about the code that instantiates frmMain? I still think frmMain is going out of scope.
>The code that calls the Crystal reporting control is:
>
>
>with frmmain.oleCrystal
> .DataFiles(0)=cFile1+'.DBF'
> .WindowTitle='Vista Preliminar'
> .ProgressDialog=.F.
> .Destination=0
> .ReportFilename=cPath+(cReporte)+'.rpt'
> .PrintReport
>endwith
>Erase (cFile1)+'.*'
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer