BindingSource on XtraReport


Author
Message
Andria Jensen
Andria Jensen
Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)Advanced StrataFrame User (600 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I'm trying to use a BusinessBindingSource as suggested for binding a BO to an XtraReport object as a DataSource.  A couple of issues that I've come across and haven't been able to get figured out yet...

1.  How would you ever be able to preview the report this way?  The BO has no data connection at design time, so it doesn't know where to get the data.  Is there some way this feature can be added...something like a design-time data source we can point it to?

2. The XtraReport does not support dropping the BO onto the designer.  I used some code and mangled the report enough to force it to allow me to drop one onto the designer.  However, it still won't let me set the BusinessObject property of the BindingSource at design time.  I get the error: "Unable to cast object of type 'WindowsApplication1.XtraReportBase' to type 'System.Windows.Forms.Control'."

Am I going about this the wrong way?  Would it be better not to use a BO/BindingSource for the data source on an XtraReport? 

The only way I can currently get anything to work is setting everything at run-time and that just isn't going to work for the really complicated reports.  I need to be able to set things at design-time and preview the output.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search