Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Open a report without Crystal Reports installed

Posted on 2004-04-16
Medium Priority
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 101

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 720 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

LVL 101

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

704 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