crystalReporterNew
Programmer
Hi,
I am wondering if it is possible to create a crystal report and save it on the disk, and then later retrieve the same report and view it in the crystal report viewer. I know I can save it as pdf etc but I dont want to do that. I have saved it as a .rpt file on my local machine but when I try to set the crystalreport viewer to that file it asks for my database connection again. I gather from this that it does not actually save the data but tries to connect to the database again to get the values. Can someone clarify this? I am using the following snippets of code:
adoOleDbDataAdapter1 = New OleDbDataAdapter(sqlString, adoOleDbConnection1)
adoOleDbDataAdapter1.Fill(DataSet1, "student1"
crReportDocument.Database.Tables(0).SetDataSource(DataSet1.Tables(0))
In another form I am doing:
CrystalReportViewer1.ReportSource = "C:\reporterNew\bin\trialreport.rpt"
where the last line gave me a previously saved crystal report. Is it true that the data does not get saved on the disk but gets retrieved from teh database everytime the repot is loaded??
Please help
thanks
I am wondering if it is possible to create a crystal report and save it on the disk, and then later retrieve the same report and view it in the crystal report viewer. I know I can save it as pdf etc but I dont want to do that. I have saved it as a .rpt file on my local machine but when I try to set the crystalreport viewer to that file it asks for my database connection again. I gather from this that it does not actually save the data but tries to connect to the database again to get the values. Can someone clarify this? I am using the following snippets of code:
adoOleDbDataAdapter1 = New OleDbDataAdapter(sqlString, adoOleDbConnection1)
adoOleDbDataAdapter1.Fill(DataSet1, "student1"
crReportDocument.Database.Tables(0).SetDataSource(DataSet1.Tables(0))
In another form I am doing:
CrystalReportViewer1.ReportSource = "C:\reporterNew\bin\trialreport.rpt"
where the last line gave me a previously saved crystal report. Is it true that the data does not get saved on the disk but gets retrieved from teh database everytime the repot is loaded??
Please help
thanks