Csdn answers:
Q:
I recently want to develop a project with statistical functions. I think of Crystal Reports. The development tool I used is vs2008 (MFC). On the Internet, I saw that vs2008 integrated the Crystal Report (10.5 ). Do I still need to install or set up any environment?
I tried to add a crystal report by creating a dialog box project (default setting), adding Active X controls (crystal ActiveX report viewer control 10.5), and then adding a variable to be associated with the space, however, this error occurs: the extended Provider failed to return an Extender for this object. If I ignore this and continue, the variable type in the dialog box is empty, and I cannot add the variable successfully, please ask if I need to configure or install anything?
A:
You need to add a class first, not in the visual editing interface, but in Class View Mode, add the MFC class in ActiveX Control-> crystal report viewer control 9. Adding a class generates a CPP and an H file.
Then, add the ActiveX control on the visual editing page.
(Select the slave file (DLL) instead of the Registry)
Add a packaging class for the ActiveX control.
Problem: you cannot add a variable to the control Active X controls (crystal ActiveX report viewer control 10.5!
Solution: manually bind and add ddx_control ()