Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++ using Crystal Reports

C++ using Crystal Reports

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++comhelptutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dwillms
    wrote on last edited by
    #1

    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)

    J 1 Reply Last reply
    0
    • D dwillms

      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)

      J Offline
      J Offline
      JonEngle
      wrote on last edited by
      #2

      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?

      D 1 Reply Last reply
      0
      • J JonEngle

        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?

        D Offline
        D Offline
        dwillms
        wrote on last edited by
        #3

        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.

        J 1 Reply Last reply
        0
        • D dwillms

          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.

          J Offline
          J Offline
          JonEngle
          wrote on last edited by
          #4

          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?

          D 1 Reply Last reply
          0
          • J JonEngle

            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?

            D Offline
            D Offline
            dwillms
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups