Hi!
I have .NET 2.0, Crystal reports XI R2 for WinForms.
I have a form with a CrystalReportViewer component on it. ReportSource for the CrystalReportViewer is an rpt template embedded as a resource in my application. Datasource for the report is a manually completed DataSet (no database connection is used). On the CrystalReportViewer there is a save button, which allows to save current report as rpt file.
My goal is to load a saved file back to the CrystalReportViewer component.
Dim rd As CrystalDecisions.CrystalReports.Engine.ReportDocument
rd = New CrystalDecisions.CrystalReports.Engine.ReportDocument
rd.Load(FileName, CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy)
crv.ReportSource = rd
On crv (CrystalReportViewer) draw event I see a database connection window. How can I avoid the login window? When I open the rpt file using Crystal Reports studio, I see all data populated correct.
Thank you in advance!
Alex