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 ?

FiacreAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mlmccConnect With a Mentor Commented:
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
 
mlmccCommented:
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
 
mlmccCommented:
This may help determine which dlls to include

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

mlmcc
0
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.

 
FiacreAuthor Commented:
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
 
mlmccCommented:
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
 
FiacreAuthor Commented:

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
 
mlmccCommented:
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
 
FiacreAuthor Commented:

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

mlmcc
0
 
FiacreAuthor Commented:
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
 
FiacreAuthor Commented:
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
 
FiacreAuthor Commented:
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
 
mlmccCommented:
I don'tknow.  I haven't used CR4 and there is very limited help on the Crystal site.

mlmcc
0
 
mlmccCommented:
Sorry I couldn't help more

mlmcc
0
 
FiacreAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.