Hi guys,

I can't understand Crystal Report strange behavior. After I install my program, it work on some computer and won't work on others. All computers typically same specs. OS either XP SP2 or Win2K.
The problem only when I try to export Crystal Report using it's feature then the program just crash and end. No warning no nothing, just **puff** vanish...

My code is like this :
At beginning
Code:
Option Explicit
 
Dim Ptr As Printer   
Dim rptSum As New crSummary
I have 2 buttons, 1 for preview and the other for export :

Code:
Private Sub cmdPreview_Click()
Dim dbl As Connection
Dim adotmp As Recordset

set adotmp etc .....

        rptSum.DiscardSavedData
        rptSum.Database.SetDataSource adotmp, 3, 1
    
        CRViewer1.ReportSource = rptSum
End Sub

Private Sub cmdExport_Click()
    rptSum.Export (True)
End Sub
The cmdPreview works fine. But when click cmdExport, in some computers it just crash immediately. What happened here ? If my coding is wrong, why then it works on other computers ?
And in 1 computer even strange thing happened. The export work fine but it only had options for PDF and text file. No Excel. But this computer do have Excel and Word installed. Strange. Has anyone come across this strange Crystal behavior before ?