Good morning ,
I wanted to ask a question that is giving me headaches for a while now .
I have developed a project with visual studio 2010 vb.NET .
In this project I need to use so many reports I decided to install the component Crystal report for VS2010 . The publishing server is a Server 2003 32-bit , so I also had to install the crystal in it.
Well, up there, all right . The project is published and the reports are released properly.
Where is the problem?
The problem arises when I have included in my project a large number of reports. At the time of posting , I jump a memory error and bark .
I have included in my project all rpt and when I call one of them, I do so . :
Dim parameters As New ParameterFields
For i = 0 To arrayParametros.Count - 1
Dim As New ParameterField parametroF
Dim As New ParameterDiscreteValue parametroDV
parametroF.ParameterFieldName = arrayParametros ( i)
parametroDV.Value = valueArray ( i)
parametroF.CurrentValues.Add ( parametroDV )
parametros.Add ( parametroF )
Next
CrystalReportViewer1.ParameterFieldInfo = parameters
Dim rpt As New Email
rpt.SetDatabaseLogon ( username, password )
CrystalReportViewer.ReportSource = rpt
The real question is if instead of including all . Rpt on my project , I could have them hosted on a physical drive on my server, and call them from the project somehow in this way to avoid problems of excessive use of memory and only call at any time desired report.
Thank you .