Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports Issue in VFP
Message
 
 
To
20/01/2009 16:48:40
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01375696
Message ID:
01376256
Views:
21
I would try to host the Crystal Report Viewer container on a VFP form (AlwaysOnBottom=.T) to see if it fixes the problem.

>
>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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform