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(CommonDi alog.FileN ame, 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
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(CommonDi
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
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
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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
2) Have you tried running the ActiveX viewer install (in the C:\Program Files\Seagate Software\Viewers\ActiveXVi