p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

crystal_reports thread: Error generating reports on client pc!


Message #1 by "tui" <tui@s...> on Wed, 26 Feb 2003 11:39:26 +1200
hi guys,

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.



  Return to Index