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


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
 
Ad

Advertisements

M

Michael Nemtsev

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
 
Ad

Advertisements

M

mike11d11

No I have not, could you give me more information on doing this. I
guess this will solve my problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top