Cant open crystal report after I publish app. File not loaded and not found.

  • Thread starter Thread starter mike11d11
  • Start date Start date
M

mike11d11

I created this test project and published it. I then tried installing
it on another machine and it installs fine. but when I go to open the
crystalreportviewer to show my created report I get an error saying it
cant and load the file. when I run it on my machine it works fine, its
like when I build the project the crystal report is not getting
included. Does anyone know where the setting is to include the crystal
report in the build or publishing of the application within vb.net
2005. Here is the code I have in my crystal report viewer if it helps.

Private Sub FormCrRptViewer_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load

reportDocument1.Load(Application.StartupPath &
"\CrystalReport3.rpt")

Dim dv As DataView

dv = New DataView(Form1.AccuLogicDataSet1.WorkList)

reportDocument1.SetDataSource(dv)

reportDocument1.Refresh()


With CrystalReportViewer1 'ReportViewer1

.DisplayGroupTree = True

.DisplayToolbar = True

.ReportSource = reportDocument1

.Refresh()


End With

End Sub
 
Hello mike11d11,

Did u install crystal's "server merge module" to the client machite to show
reports?

m> I created this test project and published it. I then tried installing
m> it on another machine and it installs fine. but when I go to open the
m> crystalreportviewer to show my created report I get an error saying
m> it cant and load the file. when I run it on my machine it works fine,
m> its like when I build the project the crystal report is not getting
m> included. Does anyone know where the setting is to include the
m> crystal report in the build or publishing of the application within
m> vb.net 2005.
m>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
No I have not, could you give me more information on doing this. I
guess this will solve my problem?
 
Back
Top