I've have a problem generating Crystal report 6 from my vb 6 application on client pc's.
Im using ado connection and when i run the setup on client pc's, the following error occurs when i try to generate reports.
error message: "Method of object failed."
below are the following code that i used from vb6 to call my report.
Set cry = New crystal.CrystalReport
cry.WindowState = crptMaximized
cry.Destination = crptToWindow
cry.WindowShowPrintSetupBtn = True
cry.WindowShowPrintBtn = True
cry.ReportFileName = "C:\Program Files\HRMS\CrystalReport\" & reportname
cry.Connect = "dsn="server name";uid=sa;pwd="
cry.Action = 1
any suggestion from you guys would be very helpful.
thanks in advance.