C++ using Crystal Reports
-
I need help in trying to code a report using Crystal Reports in C++. I can not find any examples using this capabilities. I find some using VB and C# but not C++. I could use anybody's help. Either an example or direction. Thanks Dick Willms (WillmsDick@hotmail.com)
-
I need help in trying to code a report using Crystal Reports in C++. I can not find any examples using this capabilities. I find some using VB and C# but not C++. I could use anybody's help. Either an example or direction. Thanks Dick Willms (WillmsDick@hotmail.com)
Are you trying to run the report, display the report, or programmatically modify the report (you use different things for each)? By the way, you'll want to use their COM objects in C++, which aren't hard to use, and the VB and C# examples somewhat translate. By the way, which version of Crystal are you using?
-
Are you trying to run the report, display the report, or programmatically modify the report (you use different things for each)? By the way, you'll want to use their COM objects in C++, which aren't hard to use, and the VB and C# examples somewhat translate. By the way, which version of Crystal are you using?
-
I will be doing all of the above. I am using the one that comes with .Net 2002 and or 2003. I have both. Currently I have finished the data collection phase and now I neeed to do the reporting phase against the data being collected.
In MSDN, under "Crystal Reports for Visual Studio .Net": When you are creating a C++ project to host Crystal reports on the Web or Windows, you should choose the Managed C++ Application template. Procedures that involve design view operations and automatic code generation to incorporate Crystal reports generally apply to Visual Basic and Visual C# projects only. You should use the Report Object Model, the Web Forms Viewer class description and the Windows Forms Viewer class description to incorporate Crystal reports in Managed C++ projects. It looks like the only portion of Crystal Reports they distribute with .Net is the .Net version, not the ActiveX controls or COM interfaces. So, is your C++ app a managed app?
-
In MSDN, under "Crystal Reports for Visual Studio .Net": When you are creating a C++ project to host Crystal reports on the Web or Windows, you should choose the Managed C++ Application template. Procedures that involve design view operations and automatic code generation to incorporate Crystal reports generally apply to Visual Basic and Visual C# projects only. You should use the Report Object Model, the Web Forms Viewer class description and the Windows Forms Viewer class description to incorporate Crystal reports in Managed C++ projects. It looks like the only portion of Crystal Reports they distribute with .Net is the .Net version, not the ActiveX controls or COM interfaces. So, is your C++ app a managed app?
What I plan to do is to creat a managed app and perform the nessary sql to build a file containing the data and execute this managed app passing a report number. The approiate report will then be created using the file built and display the report. Do you have a better idea I will look into it.