Master - Detail report using DevExpress


Author
Message
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)
Group: Forum Members
Posts: 144, Visits: 227
CrazyHi

I make a master/detail report using DevExpress report control. Is something basic, like order / orderitems.

In the report code I add this:

Private Sub Publicacion_DataSourceRowChanged(ByVal sender As System.Object, ByVal e As DevExpress.XtraReports.UI.DataSourceRowEventArgs) Handles MyBase.DataSourceRowChanged

'-- On Each Publicaciones DataSource Row Changed, we need to fill for the PublicacionesProductos

CType(Me.PublicacionesProductosBBS1.BusinessObject, PublicacionesProductosBO).FillByParentPrimaryKey(CType(Me.PublicacionesBBS1.BusinessObject, PublicacionesBO).IdPublicacion)

End Sub

The report works exactly as I need.

But I need this report can be customized by the end users; in other reports I use Scrips, because a custom reports does not have code inside it, this need to be done with scripts.

Adding the script to the reports, has a problem, there is a big error, because the script does not found the "PublicacionesProductosBO", my solution has a a proyect with the reports, forms, resources, business binding sources and another proyect with the BOs.

In other reports that has data of only one BBS there is not problem at all using scripts, but in this it seems that the "child BO" can not be found, I already add the Imports clause but not work.

I have read many post about master/detail reports and can not found anything, most post are relatead to Report SharpShooter. I think than I'm not the only one using xtraReports, maybe someone already has this problemas and can point me in the right direction.

If the only solution is have the BOs and the BBSs, forms, reports and all in the same proyect, Can you tell me how can do this, because at this time I have all in two proyects.

Regards

Smile Everything is possible, just keep trying...

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