PANIC - PLS HELP - Setup-Project with CR XI
i am using VS2003 and now created a test-application to check, how i can run a CR-report from an application.
for this i used the code (found here in the forum):
Code:
Dim crRep As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim gcnn As OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & "K:\Carizma_Daten\bauart\carizma.mdb" & ";")
Dim gcna As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter("SELECT * from MYDB where PJprojektnr = 153", gcnn)
Dim gda As New DataSet
gcna.Fill(gda, "MYDB")
crRep.Load(Application.StartupPath & "/Bericht2.rpt")
crRep.Database.Tables(0).SetDataSource(gda.Tables(0))
crRep.SetDataSource(gda)
CrystalReportViewer.ReportSource = crRep
i then added a setup-project, which has a reference to crystalreports11_5_net.msm
when i now build the setup-project,
- the setup has more than 80 MB !
- it uses 220MB of disk space on the pc, where i installed the test-application !!
- (it lasts 5 minutes to build the setup-project)
PLEASE:
- i have seen other applications using CR which were much smaller and did not install a directory "BusinessObjects" on the target-computer
- which merge-moduls i need to install ? - i user only MS-AccesDB's via OLEdb
- which is the correct way to create a setup-project, if i only want to execute and view pre-defined reports?
i really hope you can help me !!!! THANK YOU !!!!!