![]() |
|
#1
|
|||
|
|||
MFC connect to crystal report using microsoft AccessHi all,
I face a problem which when i run my program and click on display button, then windows pop up "unable to open database"? did my coding below got problem? CPP / C++ / C Code:
|
|
#2
|
||||
|
||||
|
Quote:
I once worked with crystal reports, It's great. Did you try to output your data into another control ? Since I don't have your rpt file I can't see if you configured the "record source" and "record type" properly ... I recommed you creat a dummy program with data grid control and bind it to a crystal report control first. Then, after you are sure everything is configured as supposed, you can remove the crystal report control and data grid and "code your way through" . This is how I did it back then (with the crystal reports version that shipped with visual studio 6) Best Regards, Kobi Hikri. __________________
It's actually a one time thing (it just happens alot). |
|
#3
|
|||
|
|||
|
Thanks Kobi!
i manage to open the database liao! |
|
#4
|
||||
|
||||
|
Quote:
What was the problem ? I remember when I first used crystal reports it took me lots of time to manage the report from code only. Glad you found the problem, Kobi Hikri. __________________
It's actually a one time thing (it just happens alot). |
|
#5
|
|||
|
|||
Re: MFC connect to crystal report using microsoft AccessQuote:
The coding is rite but its the installation problem! Install Crystal report 8.0 and the Crystl32.OCX would be registered if you do not find ( Crystal Report Control ) in the Registered Activex Controls register it manually by typing this command (regsvr32.exe Crystl32.ocx) in the console or Run. Note: Crystl32.ocx is in the System32 else specify the path. this can only work if and only if Other supporting files like crep32.dll etc. are on the target machine so is better if you install the Report. Thanks Again to help me! |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| D3D error when running fullscreen games/programs - help?! | daa709 | Computer Hardware Forum | 4 | 01-Jul-2005 08:03 |
| Intigrating Microsoft Access' Databases to a Web Page | ObiWan506 | Web Design Forum | 8 | 31-Mar-2005 14:16 |
| Microsoft users warned of serious flaw | jrobbio | Computer Software Forum - Windows | 3 | 25-Mar-2003 08:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The