Link to home
Start Free TrialLog in
Avatar of Sector10
Sector10

asked on

Failed to open document on client machine

Hello to you all,

I am running into some problems using Crystal Reports 9 with a Visual Basic 6 application.
The application is running perfectly on my machine that has the Developer edition installed on it.
Now i want to create a setup file of that application but when i installed the application on a client machine then it keeps returning
'Failed To Open Document'.  

To find out what's causing the problem i've created this simple test, this is the code in it:
Option Explicit

Dim tstRpt As New CRAXDDRT.Application

Private Sub cmdOpenReport_Click()
CommonDialog.CancelError = True

On Error GoTo ErrHandler
CommonDialog.ShowOpen

Screen.MousePointer = vbHourglass
CRViewer.ReportSource = tstRpt.OpenReport(CommonDialog.FileName, 1)
CRViewer.ViewReport
Screen.MousePointer = vbNormal

ErrHandler:
End Sub

Private Sub Form_Load()
CommonDialog.InitDir = App.Path & "\Reports"
End Sub


The components installed are:
Crystal Report Viewer Control 9
Microsoft Common Dialog Control 6.0

The added references are:
Crystal Report Viewer Control 9
Crystal Reports 9 ActiveX Designer Design and Runtime Library

Included in my Setup file to support Crystal Reports are:
craxddrt9.dll
crviewer9.dll
p2sodbc.dll
p2smon.dll
p2ssql.dll
msvcrt.dll
msvcrt10.dll
msvcrt20.dll
msvcrt40.dll
Implode.dll
Crpaig80.dll


I know that there are dll's missing but does anyone know the dll's that must also be included into the setup file to get this proggie running?


Regards,


Paul
Avatar of akDizzy
akDizzy

1) Why do you need the Designer module?
2) Have you tried running the ActiveX viewer install (in the C:\Program Files\Seagate Software\Viewers\ActiveXViewer) npviewer?

Avatar of Mike McCracken
You should be including
craxdrt9.dll not craxddrt9.dll

craxddrt9.dll requires a runtime license which you may not have.

In references select
Crystal Reports 9 ActiveX Designer Runtime Library

Look at the following for the required files
http://support.crystaldecisions.com/library/kbase/articles/c2012421.asp

mlmcc
Avatar of Sector10

ASKER

Greetings!


mlmcc, if i include the craxdrt9.dll is that enough for viewing the reports on a client machine or do i need more dll's than the list from above?

So:

craxddrt9.dll  --> Replace this with craxdrt9.dll, is the rest okay?
crviewer9.dll
p2sodbc.dll
p2smon.dll
p2ssql.dll
msvcrt.dll
msvcrt10.dll
msvcrt20.dll
msvcrt40.dll
Implode.dll
Crpaig80.dll


Regards,


Paul
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
Thanks mlmcc!

I've replaced craxddrt9.dll with craxdrt9.dll and added the dependencies for this dll.
The link was also a big help so your tips did the job for me.


Regards,


Paul