Problem with Xpo Relation
Hi ,
I have been evaluating Fastreport.net for few days for xpo.
I used this piece of code,
Config.ReportSettings.FilterBusinessObjectProperties += new FilterPropertiesEventHandler(ReportSettings_FilterBusinessObjectProperties);
void ReportSettings_FilterBusinessObjectProperties(object sender, FilterPropertiesEventArgs e)
{
if (e.Property.Name.Contains("!") || e.Property.Name == "This" || e.Property.Name == "Oid")
e.Skip = true;
}
Every thing seems to work fine but the problem is, I have Invoice Class having 1:1 association with Customer class.
while printing the invoice the first index of customer name was printed on all the invoices. i had attached the sample application.
check it out.
Regards,
Saravanan
I have been evaluating Fastreport.net for few days for xpo.
I used this piece of code,
Config.ReportSettings.FilterBusinessObjectProperties += new FilterPropertiesEventHandler(ReportSettings_FilterBusinessObjectProperties);
void ReportSettings_FilterBusinessObjectProperties(object sender, FilterPropertiesEventArgs e)
{
if (e.Property.Name.Contains("!") || e.Property.Name == "This" || e.Property.Name == "Oid")
e.Skip = true;
}
Every thing seems to work fine but the problem is, I have Invoice Class having 1:1 association with Customer class.
while printing the invoice the first index of customer name was printed on all the invoices. i had attached the sample application.
check it out.
Regards,
Saravanan
Comments
It's not a xpo-related problem; you can easily reproduce it in the main demo, "Business Objects" report. The problem is with the report structure. Your report must be of master-detail type if you want to print data from two related business objects. Another solution is to use the script to init the child datasource: