﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Assigning a BO to BusinessBindingSource on XtraReport</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 17:25:25 GMT</lastBuildDate><ttl>20</ttl><item><title>Assigning a BO to BusinessBindingSource on XtraReport</title><link>http://forum.strataframe.net/FindPost4780.aspx</link><description>I have got to figure out how to use&amp;nbsp;a BO with the XtraReport effectively.&amp;nbsp; I have been able to&amp;nbsp;drop a BusinessBindingSource on the report with no problem.&amp;nbsp; It is actually assigning a BO to the BindingSource that I'm having problems with.&amp;nbsp; I'd like to create a base report which I will be able to just inherit and use for my reports which come from BOs.&amp;nbsp; So, I'd like to be able to drop a BO on my inherited&amp;nbsp;report and then set the BusinessObject property of the BindingSource to be that BO.&amp;nbsp; I'm having a couple of major problems with this and I just need to know what I have to do to make&amp;nbsp;it work.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; When I try to drop the BO on the inherited report I get the error that it does not implement the IContainerControl interface.&amp;nbsp; What code do I need to implement for these routines to make this work correctly?&amp;nbsp; The BO still drops onto the form, but I'm sure it causes my other error.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; When I try to assign the BO to the BindingSource's BusinessObject property I get this error: "Unable to cast object of type 'BBS.Reports.BaseReport' to type 'System.Windows.Forms.Control'.&amp;nbsp; I'm sure I need to be doing something when the BO drops onto the form, but I'm not sure what will make all this work together.&lt;/P&gt;&lt;P&gt;If I can get the BindingSource to correctly work with the BO and the XtraReport so that I can use the BO fields on the report, I will be extremely happy.&amp;nbsp; Please help me get this working correctly.&amp;nbsp; Thank you in advance!</description><pubDate>Fri, 01 Dec 2006 15:11:54 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item><item><title>RE: Assigning a BO to BusinessBindingSource on XtraReport</title><link>http://forum.strataframe.net/FindPost4898.aspx</link><description>&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;I not familiar with XtraReports but use Active Reports and at first tried to do something similar to what you’ve described. After searching through the SF source to determine what it&amp;nbsp;would take&amp;nbsp;to implement IContainerControl in Active Reports and reading some related posts on this forum I believe it’s more trouble than its worth. It may not even be possible to get design time support for SF business objects in the Active Reports designer since they do not supply souce code and have some issues with inheritance. Maybe it would be easier in XtraReports????&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;Now that I’ve been doing it for awhile I find it’s very quick to layout a report in the AR, designer entering my BO field names while referring to an ObjectMapper window (got to love dual screens:)). &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;Once I’ve designed the report,&amp;nbsp;it's a simple matter to&amp;nbsp;drop the BO and BindingSource on the SF form that I will run the report from. Then all I need to do is add the BO to the BindingSource, populate the BO, create a new instance of my report, set the report’s DataSource to the BindingSource and run/show the report. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;It would be nice to be able to drop a BO on the AR report deisgner and have all the field names availabe in a drop down but probably not worth the effort.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&amp;nbsp;&lt;/SPAN&gt;</description><pubDate>Fri, 01 Dec 2006 15:11:54 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Assigning a BO to BusinessBindingSource on XtraReport</title><link>http://forum.strataframe.net/FindPost4896.aspx</link><description>Any ideas on what I can do to resolve these issues?&amp;nbsp; I'm trying to write reports and it's becoming very cumbersome without being able to do these things.</description><pubDate>Fri, 01 Dec 2006 12:47:16 GMT</pubDate><dc:creator>Andria Jensen</dc:creator></item></channel></rss>