Open a report without Crystal Reports installed

Posted on 2004-04-16
Last Modified: 2012-06-21
I have created a program in VC++ and in it I open a report I created in Crystal Reports V6, it does open no problem on my computer, but when other try to open it they have an error telling them that there is the dll Pdsodbc.dll that is missing.
I try to put that dll in the system, system32 and winnt\crystal directories but they still get the same message.
So I was wondering if there a way to make them open the report without having them to install crystal report on their computer, a reader could do the job but all I can find it is one for the higher version or even beter a way to make the file readable to all or maybe some code I can add to make it that way!!!

Thanks a lot for your time!

p.s. Sorry if my english do not sound good since it not my primary language!
Question by:cdextraze
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
LVL 100

Expert Comment

ID: 10842269
You need to build an installation package which includes all the Crystal dlls that are required.

Look in the developer help files or other helps files from CR6 to determine which files are required.

CR8 (which I use) requires many files to be included depending on the options I make available to the program.
Here is a list for CR7


Author Comment

ID: 10860005
Well I am not sure if it is what you tell me to do, but I used "Report distribution expert" and when I try to install it, I get the error "General INF file error in file RPTFILES.INF. Check for unmatched quotes, brackets or braces"
It seem to create an exe of my report too and I was wondering since I call it from my program with some some change like show only between that and that date if it will still work that way or I have to rewrite some of my code to make it work, unless I am completly out of the track and I still use the same report and it should install all the dll that is needed to open it?

thanks again for your time!


p.s. I double the point since it is harder than I though at first!!!
LVL 49

Accepted Solution

DanRollins earned 180 total points
ID: 10865860
Unlike with Visual Basic, there is no "Package anf Deployment Wizard" for VC++

There is a version of InstallShield... but at least when I used it, I had to tell it each of the files I wanted to install and each of the self-registering DLLs  (ActiveX COM modules) to install and register.

I don't know how to deploy a VC++ program that uses Crystal Reports, but here is how I'd start:

I'd run my VC++ program in the debugger and watch the "Output screen"  It shows a line like:
    Loading c:\dir\prog.DLL ...
for each DLL that the program uses.  This will include several system DLLs which you should not deploy, but there will be several CR-related DLLs that you will need to use.

Now, go to a different computer and copy your EXE file into a directory.  Try to run it and you will get an error.  Then copy each of the DLLs from that list into the same directory and try again... until it works or you have copied all of the DLLs.

If it never starts, or starts but fails when you try to generate the report, then it is possible that one of more of the DLLs is an ActiveX/COM module that needs to be registered.  TO register a COM object manually, get to a Command prompt in the directory and type:

   regsvr32 the_name_of_a_dll

You will problably need to manually register any DLLs that you brought into your project via the #import directory.

Once you find out which DLLs you need to copy and which (if any) need to be registered, I can provide help in how to use InstallShield to create a setup disk.

-- Dan
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

LVL 100

Expert Comment

ID: 10874337
Thanks Dan.


Author Comment

ID: 10888436
Thanks for the anwser!

My program do run np on other computer it only when I try to open the report that I get the missing dll.
So I look at my debug window like you say he did when I click the button to open the repport :
Loaded symbols for 'C:\WINNT\system32\crystl32.ocx'
and a lot of other dll but at the end of each of those line there is "no matching symbolic information found" like for exemple :
Loaded 'C:\WINNT\system32\crpe32.dll', no matching symbolic information found.
So even with that message do I need to copy those dll too??

I did try to run and copy in the same directory my exe and the dll he ask when I try to run it and he still ask them, so I try to regsvr32 them but he say he could not, the only I could was the crystl32.ocx.

So look like I am back to the start...
thanks for your time!
LVL 49

Expert Comment

ID: 10893131
You did that exactly right.
On the other computer, you will need to use RegSvr32 to register crystl32.ocx

*And* you need to copy all of the DLLs that are used by crystl32.ocx into the same directory as crystl32.ocx

Note the "no matching symbolic information found." is not an error.  Ignore it.

-- Dan

Author Comment

ID: 10921193
Great thanks a lot for you kind help all is working now, as for the install shield you could add how you do it to help other that might have the same problem as I, for my part I have someone at my job that can do it now that I know all the dll that I need!
once again thanks a lot to help me become beter!!!


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question