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. Dynamic Crystal report viewer control

Dynamic Crystal report viewer control

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomwindows-adminannouncement
2 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.
  • R Offline
    R Offline
    Rahim Rattani
    wrote on last edited by
    #1

    I am working on the reporting part of a big project. The problem is that the users of the product can have either version 8.5 or 10.0 of crystal reports. The task is to identify the version of the crystal report they have on the system and then create the relative activeX control either 8.5 or 10.0 from the code using its dlls to display the reports. I know that I can extract the version and the path of the dlls from the registry of the system. The actual problem arises when i need to use that dll to create the control dynamicallyfrom the code at runtime and use it to display the reports. Hope some one could help me out. Thanx in advance. ..RR..

    N 1 Reply Last reply
    0
    • R Rahim Rattani

      I am working on the reporting part of a big project. The problem is that the users of the product can have either version 8.5 or 10.0 of crystal reports. The task is to identify the version of the crystal report they have on the system and then create the relative activeX control either 8.5 or 10.0 from the code using its dlls to display the reports. I know that I can extract the version and the path of the dlls from the registry of the system. The actual problem arises when i need to use that dll to create the control dynamicallyfrom the code at runtime and use it to display the reports. Hope some one could help me out. Thanx in advance. ..RR..

      N Offline
      N Offline
      naren vc
      wrote on last edited by
      #2

      hi rahim, suppose if the two version dll's are named as crystal32_8.dll and crystal32_10.dll. then u register the both the dll's in the registry, then instantiate both the dll's classes. Then in the reporting function try to read the version of the report file and based on the version call the appropriate object. { // in the main class CCrystal_8 m_cry8 ; // object used to get the services of crystal32_8.dll CCrystal_10 m_cry10 ; // object used to get the services of crystal32_10.dll } { //in the area of reporting the file int ver ; 1. get the version info of the report file and store it in the ver 2. if(ver == 8) //use the object m_cry8 to show that file else //use the object m_cry10 to show that file } naren

      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