Print Page | Close Window

DevExpress Reports

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1080
Printed Date: 13-Mar-2025 at 6:49am


Topic: DevExpress Reports
Posted By: *Calsy
Subject: DevExpress Reports
Date Posted: 03-Feb-2009 at 9:16pm
Hi All, We have developed a .net app with ideablade and DevExpress. We use DevExpress for our reporting module.

We are currently in the process of upgrading from .net 2005 to .net 2008 and its corresponding versions of DevForce and DevExpress.

I have come across an issue with the 2008 version of devExpress reports when assigning any type of ideablade data list as the datasource of a DevExpress report. It gives the following error : "Value does not fall within the specified range".

Just wondering if anyone is on .net 2008 with the new version of DevForce and trying to assign a entitylist as the datasource for a devExpress XtraReport.

Look forward to any feedback.

Thanks



Replies:
Posted By: *Calsy
Date Posted: 15-Feb-2009 at 1:52pm
Hi all, I created a cutdown solution for DevExpress support to replicate this issue and they have registered this as a bug when linking to an Ideablade Entitylist as the reports datasource. Will be fixed in the upcoming release.


Posted By: *Calsy
Date Posted: 16-Feb-2009 at 10:19pm
If anybody is interested if you want to assign an entitylist as a DevExpress.Report's datasource than you must add the following code for it to work in the designer:

Public Class Form1

    Private Sub SimpleButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleButton1.Click
        Dim rep As New Report1
        Dim bs As New BindingSource
        bs.DataSource = IdeaBlade.Persistence.PersistenceManager.DefaultManager.GetEntities(Of Entities.AccountCode)()
        rep.DataSource = bs
        rep.ShowDesigner()
    End Sub
End Class

Public Class Report1
    Inherits DevExpress.XtraReports.UI.XtraReport
    Protected Overrides Sub CollectAssociatedComponents(ByVal components As DevExpress.XtraReports.Native.DesignItemList)
        MyBase.CollectAssociatedComponents(components)
        components.Remove(Me.DataSource)
    End Sub

End Class



Posted By: *Calsy
Date Posted: 16-Feb-2009 at 10:21pm
That is with v8.3



Print Page | Close Window