Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal Reports Issue in VFP
Message
De
20/01/2009 16:48:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Crystal Reports Issue in VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01375696
Message ID:
01375696
Vues:
61
Not sure if this is the right category but

I'm currently trying to host a Crystal Report viewer instance in the background screen of a VFP Application. I Host the Crystal Report Viewer in a container object and then add that to the screen. That appears to work fine. The issue I'm running into is that when i start processing keystrokes on any other forms, the enter key is lost to me. If I do the same thing in the VFP IDE The enter key is also lost.

the Screen is a considered a VFP Form.

the following is the code i run to add the object to the form

_screen.AddObject("fred","crContainer")

In the Init of crContainer I have the following code:

local oReport, oCrystal
oCrystal = CREATEOBJECT("CrystalRuntime.Application")
oReport = oCrystal.OpenReport(This.Reportname)
this.CRV.ReportSource = oReport
This.Crv.Anchor = 15
this.crv.ViewReport()

CRV is an istance of OLEControl that hosts an instance of CrystalReports115.ActiveXReportViewer.1 (CR XI R2) as 'CRV'

All other keys appear to be handled by my event handlers in vfp except the enter key. Any suggestions, clues or comments

I have searched, with Google and MSDN for a solution and nothing seems to pop to hand.
Joseph Gori
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform