Summary of Using Crystal Reports in VC

Source: Internet
Author: User

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 ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.