Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Report file invalid error???
Message
 
À
14/10/1998 15:32:14
Zaraq Bari
Bari Studios Limited
Lahore, Pakistan
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00146832
Message ID:
00146860
Vues:
28
>In the form the crystal report ocx is added with its action property set to 1
>so as to print the report in vfp application. It used to work in vfp5.0a but
>doen not in vfp6.0.The error it gives is:
>OLE IDispatch exception code 0 from CrystalReport:Invalid report file name..
>Isn't vfp6.0 compatible with crystal reports 6.0?
>If it is then why is it giving the error? The report file is there and the path
>is also correct.

Do you mean that you're adding the control when you want to print, or that you're adding the control at design time and changing the Action property to 1 when you want to print it?

In any case, Seagate recommends that you not use the OCX any more: support will be dropped in a future release. Try creating an automation server.
loCR = CREATEOBJECT('Crystal.CRPE.Application')
loRep = loCR.OpenReport('MyReportName.rpt')
loRep.PrintOut()
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform