Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run Crystal Report 8.0 report from button on a VFP 6.0 form?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Run Crystal Report 8.0 report from button on a VFP 6.0 form?
Divers
Thread ID:
00482054
Message ID:
00482054
Vues:
89
I have the Crystal Reports OLE control on my form and a command button that reads, "Print Report".

I don't understand why when I press the button the screen flashes and nothing ever prints. Any ideas?

Here is the code in my print button:
thisform.c_rpt.printername=bw_printer
thisform.c_rpt.reportfilename="AEDSum.rpt" 
&& Establish title for report
thisform.c_rpt.reportfilename="AEDSum.rpt"
TESTOUT=thisform.c_rpt.printreport
thisform.refresh
out_ptr_bw = .f.
thisform.refresh
The properties in the Crystal Reports OLE control match those of a form that work to print reports so I am pretty sure it's not the properties causing the problem.

Does it have anything to do with me having a record open on my data entry form? The report uses the same table as one of the open records on the form where the button is located.

TIA!
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform