Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal printing problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00217064
Message ID:
00217321
Vues:
14
>>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.
>
>
>I haven't used CR for a couple of years, but as I recall, the Action causes the report to be output. There is another property that you need to set that determines the output location.

Hi Craig,

After digging a little in the properties of CR object I found a destination property...set it to 1 and viola! Don't know why one configuration needs it and the other doesn't...oh well, it works. On with the learning.

Thanks.

John.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform