Skip to content

Replies

0
Ingo
Ingo answered on Feb 7, 2012 8:23 PM

Got it to work by setting the DefinitionUri like this:

 

urvDefault.RenderSettings.DefinitionUri = New Uri("reporting\" & m_file, System.UriKind.Relative)


really dirty, but works. Will clean it in a few ;)
0
Ingo
Ingo answered on Feb 7, 2012 8:04 PM

Nope…doesnt work at all…sry 🙁

 

Need help, thx

0
Ingo
Ingo answered on Feb 7, 2012 8:00 PM

Found a quick and dirty solution:

 

Let the ReportViewer Dialog accept a string which is the path to the report file.

Let the ReportViewer Dialog accept a ID of the Object that will be used as a DataSource.

 

In the Load of the ReportViewer Dialog do it like this:

 

Select Case m_file
 
            Case "Crafting.igr"
                Dim _param As New Infragistics.Win.UltraWinReportViewer.Parameter()
                _param.ParameterName = "Crafting_ID"
                _param.ParameterValue = m_id
                urvDefault.Parameters.Add(_param)
 
            Case "Order.igr"
 
        End Select
 
        urvDefault.RenderSettings.DefinitionUri = New Uri(m_file)
        urvDefault.PerformAutoScale()


Yeah yeah, I know, this is 100% dirty ...but I just wanted to test if it is possible like this....and it seems it is.