hi all,
i am using crystal report that shiped with vb6(cr4)..
i have a problem when i try to save the report to a file without displaying on the screen. the file is created with the correct data. but the my application and vb is crashed. i am working in windows 2000.
my code is as follows...

cr.Destination = crptToFile
cr.ReportFileName = myFile
cr.PrintFileType=crptText
cr.PrintFilename="test.txt"
cr.Action=1

Vb crashes when cr.Action=1 line is executed.
but the file is created successfully with data..

pls help...thanks in advance

jinujose