Link to home
Start Free TrialLog in
Avatar of Fiacre
Fiacre

asked on

Deploy Crystal Report 4.6.1 and VB6.0 - How ?


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 ?

Avatar of Mike McCracken
Mike McCracken

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
Avatar of Fiacre

ASKER

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 ?
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
Avatar of Fiacre

ASKER


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 ?
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
Avatar of Fiacre

ASKER


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 ?
Avatar of Fiacre

ASKER

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.
Avatar of Fiacre

ASKER

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 ?
It is possible that it is a printer driver issue.  Preview uses the printer driver.

mlmcc
Avatar of Fiacre

ASKER

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.
Avatar of Fiacre

ASKER

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 ?

ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fiacre

ASKER

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 ?

I don'tknow.  I haven't used CR4 and there is very limited help on the Crystal site.

mlmcc
Sorry I couldn't help more

mlmcc
Avatar of Fiacre

ASKER

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. :(