Issue with word "Parent" ... compile error (already contains a definition)
Posted: Wed Jan 05, 2011 5:48 pm
I am receiving an error message when previewing an empty report that has a XML data source and need to know how to resolve it without changing the XML. To me it looks like a bug in Stimulsoft ...
Can anyone help me and if it is a bug can Stimulsoft please correct it.
Error Message:
1.Error! The error of compilation
The error of compilatin is found in the 'Report' report:
The type 'Reports.Report' already contains a definition for 'ParentEntity'
Top part of the code after clicking Code button on message:
Note that in the above code "ParentEntity" appears both as a Stimulsoft.Report.Dictionary.StiDataRelation and a ParentEntityDataSource.
XML Datasource:
What it looks like is when the code is generated from the designer the word "Parent" is used as a prefix on all of the StiDataRelation s except where I have an element in my XML datasource called ParentEntity ...... maybe there is a bug where "Parent" is used in an Element that has a relationship ???
Note that I have nothing in my report and have simplified the XML but the issue also exists when I do have a full report and a schema.
All I have done is to open up the report designer, Create a new connection to the XML datasource, synchronised the datasource and clicked on the Preview tab.
thanks
Can anyone help me and if it is a bug can Stimulsoft please correct it.
Error Message:
1.Error! The error of compilation
The error of compilatin is found in the 'Report' report:
The type 'Reports.Report' already contains a definition for 'ParentEntity'
Top part of the code after clicking Code button on message:
Code: Select all
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report : Stimulsoft.Report.StiReport
{
public Report()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify
public Stimulsoft.Report.Dictionary.StiDataRelation ParentEntity;
public Stimulsoft.Report.Dictionary.StiDataRelation ParentERP_Debtor;
public Stimulsoft.Report.Dictionary.StiDataRelation ParentESA;
public Stimulsoft.Report.Components.StiPage Page1;
public Stimulsoft.Report.Components.StiWatermark Page1_Watermark;
public Stimulsoft.Report.Print.StiPrinterSettings Report_PrinterSettings;
public ESADataSource ESA;
public ERP_DebtorDataSource ERP_Debtor;
public ParentEntityDataSource ParentEntity;
public ImageDataSource Image;
XML Datasource:
Code: Select all
Note that I have nothing in my report and have simplified the XML but the issue also exists when I do have a full report and a schema.
All I have done is to open up the report designer, Create a new connection to the XML datasource, synchronised the datasource and clicked on the Preview tab.
thanks