Monday, March 19, 2012

Crystal Report with C++

Hi all,
I'm tyieng to write a program in C++ wich uses Crystal Report facilities to design a report and print it. The problem is that its use with Crystal Report 8 is correct.
It returns in
((CMainFrame*)theApp.m_pMainWnd)->m_cDialog.m_CrystalCtrl.PrintReport() a 0, wich means there is no error...
When I used with Crystal Report 9 installed in my machine
((CMainFrame*)theApp.m_pMainWnd)->m_cDialog.m_CrystalCtrl.PrintReport() returns a diferent number: 20525...
PrintReport is the name of the method's name Crystal Report Object.
Could anybody help me?
Thanks a lot.
BeaThere are a lot of differences between Crystal Reports 8 and 9. Although I don't know the exact differences, I do know that sometimes newer versions are NOT backward compatible with older versions. The function you're using in v8 was probably replaced with a different function in v9.

My suggestion is determine which version you want to work with and stick with it. Modify all your reports to work with one version or the other and make sure all your dlls are the same version.

No comments:

Post a Comment