Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Report and Visual FoxPro 5
Message
De
08/02/2002 16:30:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Crystal Report and Visual FoxPro 5
Divers
Thread ID:
00617712
Message ID:
00617712
Vues:
96
Hi,
I have a simple Visual FoxPro 5 app.
Also, I have a simple Crystal Report written in CR 7.
How can I previewing that report in Visual FoxPro?
When I try to insert Ole Container control on my form, I get these 2 Crystal related controls:
* Crystal Report Control
* Crystal Report Smart Viewer 7
I did try to use both of them.
I get an error "The instruction at 0x031af880 referenced memory at 0x000003c. The memory could not be read" every time.
My code:

Form On Load method:
SYS(2333, 1)

Run Button On Click:
public CRApplication
public CRReport
CRApplication = createobject("CrystalRuntime.Application")
CRReport = createobject("CrystalRuntime.Report")
CRReport = CRApplication.OpenReport("e:\smartStaff\crystalFoxPro\testRpt.rpt")
ThisForm.Olecontrol1.reportsource = CRReport
ThisForm.Olecontrol1.viewreport

What am I doing wrong?

Thanks,
Dragan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform