I'm trying to load a Report using Relative URI, but I'm always receiving this error:
Infragistics.Reports.Engine.ReportLoaderException: Could not find report definition
The only way is if I put the full path of the Report ("C:\Program Files (x86)\MyProyect...\MyReport.igr")
It's wierd, because I can do it in other project, but this is a new one and I don't know whats the problem.
even if I select the Report from the "definition Uri" area in the ReportViewer
This piece of code don't work:
Dim reportMain As String = "/Condonaciones;component/Reportes/Rpt_Cond.igr"
Me.UltraReportViewer1.RenderSettings.DefinitionUri = New System.Uri(String.Format(reportMain, "Rpt_Cond.igr"), System.UriKind.Relative)
but this works perfectly:
Dim reportmain As String = "c:\MyProyect\Condonaciones.Net\Condonaciones.Net\Condonaciones\Reportes\Rpt_Cond.igr"
Can anyone tell me what can be?
I checked the version of the DLL (11.2.20112.1068), then I applied the Service Release to Version 2153 and in both cases didn't work.
Hi.
I think you copy report file to in your project so ,
right click of report and go to Properties--> Build Action and choose "Resource".
Hello Gerardo,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I have been looking into your question and it seems that the .igr file is located in a Condonaciones class library.
In order to access it you need to set its Build Action to ‘Resorce’ and use something like :
Dim reportMain As String = "/ReportingClassLibrary;component/Report1.igr"
Me.UltraReportViewer1.RenderSettings.DefinitionUri =
New System.Uri(
string.Format(reportMain),System.UriKind.Relative)
Let me know, if you need any further assistance on this matter.