StrataFrame Forum

Strataframe Business Objects with Sharpshooter

http://forum.strataframe.net/Topic17509.aspx

By Ross L. Rooker, Sr. - 7/1/2008

Creating a simple Sharpshooter Report. Dragged a SF BO onto the Report form and a message pops up: "Invalid Strataframe Container. The object that the business object has been dropped on must implement Microfour.Strataframe.Windows.Forms.IContainer control".

What is the easiest way to use an SF BO for a Sharpshooter report. Some of our users will be creating reports. We were hoping to create the methods within the SF BO that they would use to create simple reports. Is this workable with a SF BO, or do we need to roll our own BO's outside of SF?

By Trent L. Taylor - 7/1/2008

A BO requires the parent container to implement IContainer, as shown in the error message.  You should really be creating a reporting BBS that gets dragged onto your form rather than a BO getting dragged onto your form anyway.
By Trent L. Taylor - 7/3/2008

You will really want to load the latest 1.6.6 build now and use the new Custom Business Binding Source as it will do all of this work for you.  You can get it here: http://forum.strataframe.net/FindPost17560.aspx