Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mind's Eye Report Engine
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00729687
Message ID:
00729707
Views:
12
> Hi Richard,

> I am creating a form class to run setup code, ask the user for a range of values,
> fetch the data, and show a report right in the form using your viewer,
> for which I downloaded the demo.

> I have looked at ReportEngineDemo and DemoIt but am not sure how to proceed.
> My SOP will be to instanciate the form class from the menu with parameters
> that indicate which prg and frx to use. What code should I place in the class
> to load your viewer, and then show the report in it?

You could drop my ActiveX control onto your form and name it oReport. If you want it to resize with the form place code in the Resize Event and now you've built a Clone of the VFP Report Preview. Also make sure you create your cursor prior to running the code below or you can have the code in the DE of the Report. There are a lot of variations there. But the code is rather simple. I can also make another method so that you could just pass the object to the method as well. It's VFP we can do anything! <bg>


If you have a button on the form you could put this code in the Click event to run the report:
SET CLASSLIB TO MindsEyeReportEngine
o = CREATEOBJECT('MindsEyeReportEngine')
o.oCanvas = THISFORM.oReport
o.ReportForm(cFRXReportFileName)
o.oCanvas = NULL
o = NULL
RELEASE o
This code should then run the report for you on the current form. Let me know if this doesn't work for you. I wrote this up and tested it and it worked fine.
Previous
Reply
Map
View

Click here to load this message in the networking platform