vb5 crystal reports printing problem
-
I am using visual basic 5 and I am using a crystal report object on the form. I am using the following code to bring up a template with the report which then has a button to print it. svrId = .LogOnServer("p2sodbc.dll", "SystemDSMName", DbPath, "admin", "") .WindowTitle = reportType .ReportFileName = PROGRAM_PATH + "\reports\" + rptName .PrintReport .LogOffServer svrId, False Everything works fine most of the time but on some client machines, when the ".PrintReport" line is reached when printing the report instead of a template coming up with the report that is displayed and can then be printed, no template or a ghost template comes up and the hour glass stays up for a while and then disappears. Its as though the system is making an attempt to bring up the template with the report, but is unsuccessful. No error message is displayed. Any other file prints fine on these machines and printer setup seems to be fine. The problem also seems to be intermittent on these machines as sometimes it works. Any help would be greatly appreciated!!:confused: