Trying to bind to an XtraReport


Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hya.

I am trying to bind an XtraReport label to a BO field.

Does our BO implements the IList, ITypedList or IBindingList interface? That's what the XtraReport asks me in the help file.

I get an error after I set the report DataSource to the BO :

Private Sub RelEmpresasToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RelEmpresasToolStripMenuItem.Click

Dim Report As New rptEmpresas()

Dim loEmpresas As New ProFilmeNET_BOL.boEmpresas()

loEmpresas.FillDataTable("Select * from Empresas")

Report.DataSource = loEmpresas

Report.lblNome.DataBindings.Add("Text", loEmpresas, "emp_Descr")

Report.ShowPreviewDialog()

End Sub

Any word of advice to direct me in the right direction will be appreciated.

Thanks in advance.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ivan George Borges - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Ivan George Borges - 19 Years Ago
Ivan George Borges - 19 Years Ago
                     Glad you got it working, Ivan :)
StrataFrame Team - 19 Years Ago
Paul Chase - 19 Years Ago
Ivan George Borges - 19 Years Ago
Paul Chase - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Ivan George Borges - 19 Years Ago
Paul Chase - 19 Years Ago
StrataFrame Team - 19 Years Ago
Paul Chase - 19 Years Ago
StrataFrame Team - 19 Years Ago
Ivan George Borges - 19 Years Ago
                         Hehe, no questions are stupid, that's for sure... and yes, you have it...
StrataFrame Team - 19 Years Ago
                             Hey, Paul. I did the changes you mentioned before to get the BO...
Ivan George Borges - 19 Years Ago
                                 Yeah I havent figured out how to make that work.. Dont hit HTML it...
Paul Chase - 19 Years Ago
                                     too late ...:D
Ivan George Borges - 19 Years Ago
                                         Ben, I understand what you are saying about using a temp table to...
Paul Chase - 19 Years Ago
                                 Hi Ivan, I'm also having problems dropping a BO onto the report...
Tim Dol - 19 Years Ago
                                     Tim you need to manually assign the bus object to the binding source...
Paul Chase - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search