>I created a Report ChecNulls.frx from the Template. I created the Business object and created an environment within that. Then I right clicked the report template and go to dataenvironment properties. In the Init envent I replaced the with the name of my data environment. I want to run the report from the command button on my form. What should I write in the command button to run the report.>
Check out the code in the class CReportForm.RunReport(). This form method uses the CReportsObj class to print/preview/etc. reports. You can use similar code in your command button.
Regards,
Kevin McNeish Eight-Time .NET MVP VFP and iOS Author, Speaker & Trainer Oak Leaf Enterprises, Inc. Chief Architect, MM Framework http://www.oakleafsd.com