General information
Category:
Third party products
Title:
Crystal printing problem
I'm new to CR and have a simple problem (I'm sure) that I can't figure out. I'm playing with the OCX approach to get at my reports and things seem to be working fine on my development machine at home when printing a simple report, but when I try printing the same report from my office machine, the print preview screen pops up instead of sending the report straight to the printer. Here's the basic code that I'm using
THISFORM.ADDOBJECT("oCReport","crystal.mycrystal")
*!*run the select to populate the cursor
*!*copy cursor to the fox2x table for the report
thisform.oCReport.ReportFileName = "d:\seagate software\crystal reports\SAMPLE1.rpt"
thisform.oCReport.Action = 1
I assumed by setting the action property to 1 of the crystal object that it would send the report directly to the printer defined for the report and not display the preview screen, in fact, it works fine on my home PC but not my office PC. Can anyone shed some light on why the preview displays instead of sending directly to the printer?
Thanks much for any insights!
John.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only