Deploying a software with crystal Reports
Dear Friends I am using crystal reports in my project. The code used to view the report is as follows:
Dim repstr As String = Application.StartupPath & "\Actwise.rpt"
Dim ds As New DataSet
Dim da As New SqlDataAdapter(SQLSTR, con)
Dim b As Integer = da.Fill(ds)
Dim rep1 As New Engine.ReportDocument
rep1.Load(repstr)
rep1.SetDataSource(ds.Tables(0))
ActWise.ReportSource = rep1
ActWise.DisplayGroupTree = False
Now when I am testing it the project is working fine, but when I publish the software and try to install it on other clients it is giving error " Load Report Failed". I have checked thorough ly and found that the .rpt file (in the above case actwise.rpt) file is not being copied with the setup. If I manually copy the file to the application destination in the documents and settings folder then the report is being shown.
So my question is what should I do so that after publishing the report is automatically copied to the client where I run the setup file?
Regards!
Akhilesh
|