?
Solved

Deploy Crystal Report 4.6.1 and VB6.0 - How ?

Posted on 2005-03-14
17
Medium Priority
?
1,785 Views
Last Modified: 2008-01-09

my client agrees to take CR4.6.1 and VB6.0 application.

when i deployed a DIY application (in VB6) on a user-PC, the reports do not work. I used 'Package & Deployment Wizard'. No report appeared, when i click on a button.

So, i copied all those files related to report (eg. *.rpt) onto the user-PC, to see if reports would work. When i clicked on a button, a blank report screen seemed to appear for 1 sec, and disappeared again.

Qn: How do i deploy a VB6 application with reports, onto a user-PC ?

0
Comment
Question by:Fiacre
[X]
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
  • 9
  • 8
17 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 13537502
With CR4.6 it is a bit involved.

P&DW will pickup most of the required files however you will need to add the database dlls, the report files (.rpt), and any export dlls you want.

What database?

What connection method to the database?

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 13537557
This may help determine which dlls to include

http://support.businessobjects.com/communityCS/FilesAndUpdates/depends20.zip.asp

mlmcc
0
 

Author Comment

by:Fiacre
ID: 13537730
mlmcc,

The database is Access 2000 (mdb).
The connection is DAO.
The OS is winXP, or win98se.

Where shall i place the DLLs into ? C:\windows\system32 ?
Where shall i place the files related to reports (eg. *.rpt) into ? follow my original folder, eg. App.path\reports\  ?
For those dependency files required and picked up by P&DW, where shall i place them into ?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
LVL 101

Expert Comment

by:mlmcc
ID: 13538326
I would find them on your development system and place them in the same directories.

Report files - That sounds like a good location.

Crystal does have some dlls that it requires to be in system32 (those should go appropriately.  The others can go in the applicatioin directory or if you plan on having more than 1 application on a machine using Crystal tools, I would put the Crystal dlls in a common directory.

You will need to upgrade your database dlls for Crystal to use Access 2000.
http://support.businessobjects.com/library/kbase/articles/c2006736.asp

http://support.businessobjects.com/library/kbase/articles/c2006737.asp

A list of required files
http://support.businessobjects.com/library/kbase/articles/c2000266.asp

mlmcc
0
 

Author Comment

by:Fiacre
ID: 13542088

my problem could it be due to the user-PC does not have any ACCESS installed ?

If yes, my client just need install ACCESS 97, and it will be resolved, right ?

But if my client has ACCESS 2000 installed, and if my reports do not work, can i just install ACCESS 97 over the same user-PC ? Can a PC have both ACCESS 2000 and ACCESS 97 in its harddisk ?
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 13543703
Why the need for Access97?  Access 97 cannot read an Access 2000 database.

You shouldn't need Access installed just the appropriate MS Jet engine.

mlmcc
0
 

Author Comment

by:Fiacre
ID: 13546822

I have tried my best to copy many DLLs from development system to user-PC's directories...eg. windows/system, system32, crystal, app.path, etc. but still the problem persists...ie. a blank report appears for about 0.5 second and disappears again.

q- When user-PC still cannot display reports, what else could i do ? should i install VB6 on user-PC ?

btw, for all those DLLs shown using below (depends20.zip) mlmcc's
http://support.businessobjects.com/communityCS/FilesAndUpdates/depends20.zip.asp

q- How can i extract all the DLLs shown, rather than writing down the filenames one by one ?
q- What is the chance of resolving, by copying all the DLLs shown onto the user-PC ?
0
 

Author Comment

by:Fiacre
ID: 13546864
to add...

i have also tried installing CR4 from VB6 CD onto the user-PC, but still no reports could be displayed.

i have tried copy as many DLLs as possible according to mlmcc's "the list of required files".

Any advise / comment ? thanks.
0
 

Author Comment

by:Fiacre
ID: 13548309
hi,

i am just wondering about my own problem....could it be because of the Printer Driver issue ? Say my user-PC has no printer driver at all ? or say my user-PC has a printer driver different from my development system default printer driver ?
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 13551118
It is possible that it is a printer driver issue.  Preview uses the printer driver.

mlmcc
0
 

Author Comment

by:Fiacre
ID: 13557314
ok, i found out tt the problem could be...
...Crystal01.DiscardSavedData = True

At the user-PC, When i set it to false, the preview page is displayed. Could it be due to not enough memory ? (My development-PC works well even if it is set True.)

now my questions are...
- If DiscardSavedData is True, how can i display refreshed data, without having the user to click 'refresh' everytime ?
- What can i do, if crystal report preview page is displayed only when DiscardSavedData is True ? i need the report to be refreshed and not using the old saved report (My development PC works well even when it is set True).

pls advise/help. thanks.
0
 

Author Comment

by:Fiacre
ID: 13557335
Edit my comment...

now my questions are...
- If DiscardSavedData is FALSE, how can i display refreshed data, without having the user to click 'refresh' everytime ?

0
 
LVL 101

Accepted Solution

by:
mlmcc earned 400 total points
ID: 13561978
Does the user data appear when he clicks refresh?

Try it this way.
Open the report
CLick FILE
Uncheck SAVE DATA WITH REPORT

Does it work on the user's PC?

mlmcc
0
 

Author Comment

by:Fiacre
ID: 13567539
mlmcc,
i tried your instruction, and after uncheck, the user-PC cannot display any report at all, with error message like 'database not found'.

So, i use CR4 to open the reports in user-PC, and tried SET LOCATION to rectify the path/location of the mdb, and bingo, the user-PC can display reports already, and the cause of the problem is pin-pointed.

My question is...how to SET LOCATION of the database during runtime ? Supposed my development-PC reports are in D:\..., and my user-PC reports are in C:\... ? I have done Crystal01.ReportFileName = App.path & "\reports\test.rpt", but how come in user-PC's report, it still points to the wrong location ?

0
 
LVL 101

Expert Comment

by:mlmcc
ID: 13571310
I don'tknow.  I haven't used CR4 and there is very limited help on the Crystal site.

mlmcc
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 13586902
Sorry I couldn't help more

mlmcc
0
 

Author Comment

by:Fiacre
ID: 13587481
it's ok,...your answer was crucial. :) :)

anyway, i have worked out by creating my reports in the same path as the user-PC, and so set location at runtime is not necessary.

also, my CR4 can suppress blank lines at detail section. I read from internet that CR earlier than ver8.5 cannot suppress blank lines, but my CR4 can suppress. :)

Only disadvantage is CR4 cannot print memo field. :(
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

741 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