undeclared namespace
Posted: Wed May 14, 2008 4:04 pm
by dennis meadowcroft
I copied all of the stimulsoft dlls to the debug\bin directory and copied everything to my report directory.
still no good...
Here is the source for my report
----------------------------------------------
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.Components.StiPage Page1;
public Stimulsoft.Report.Components.StiDataBand Data1;
public Stimulsoft.Report.Components.StiText Text1;
public Stimulsoft.Report.Components.StiText Text2;
public Stimulsoft.Report.Components.StiText Text3;
public Stimulsoft.Report.Components.StiText Text4;
public Stimulsoft.Report.Components.StiText Text5;
public Stimulsoft.Report.Components.StiText Text6;
public Stimulsoft.Report.Components.StiWatermark Page1_Watermark;
public Stimulsoft.Report.Print.StiPrinterSettings Report_PrinterSettings;
public Model_UserDataSource Model_User;
public Model_UserRoleDataSource Model_UserRole;
public Model_RoleDataSource Model_Role;
public void Text1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Model_Role.Id, true);
}
public void Text2__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Id";
}
public void Text3__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Model_Role.Name, true);
}
public void Text4__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Name";
}
public void Text5__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = ToString(sender, Model_Role.Description, true);
}
public void Text6__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Description";
}
private void InitializeComponent()
{
this.Model_Role = new Model_RoleDataSource();
this.Model_UserRole = new Model_UserRoleDataSource();
this.Model_User = new Model_UserDataSource();
this.NeedsCompiling = false;
this.ReferencedAssemblies = new System.String[] {
"System.Dll",
"System.Drawing.Dll",
"System.Windows.Forms.Dll",
"System.Data.Dll",
"System.Xml.Dll",
"Stimulsoft.Controls.Dll",
"Stimulsoft.Base.Dll",
"Stimulsoft.Report.Dll"};
this.ReportAlias = "Report";
//
// ReportChanged
//
this.ReportChanged = new DateTime(2008, 5, 14, 15, 50, 50, 879);
//
// ReportCreated
//
this.ReportCreated = new DateTime(2008, 5, 14, 15, 32, 28, 875);
this.ReportGuid = "b1a9dc338097478e96e09c1616acf377";
this.ReportName = "Report";
this.ReportUnit = Stimulsoft.Report.StiReportUnitType.Inches;
this.ScriptLanguage = Stimulsoft.Report.StiReportLanguageType.CSharp;
//
// Page1
//
this.Page1 = new Stimulsoft.Report.Components.StiPage();
this.Page1.Guid = "39bc8fd7a32741ceb4bcac70fa1050cd";
this.Page1.Name = "Page1";
this.Page1.PageHeight = 11.69;
this.Page1.PageWidth = 8.27;
this.Page1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 2, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Page1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
//
// Data1
//
this.Data1 = new Stimulsoft.Report.Components.StiDataBand();
this.Data1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.2, 7.49, 0.3);
this.Data1.DataSourceName = "Model:Role";
this.Data1.MaxHeight = 0;
this.Data1.MinHeight = 0;
this.Data1.Name = "Data1";
this.Data1.Sort = new System.String[0];
this.Data1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Data1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
//
// Text1
//
this.Text1 = new Stimulsoft.Report.Components.StiText();
this.Text1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0.6, 0, 0.6, 0.2);
this.Text1.LinesOfUnderline = Stimulsoft.Base.Drawing.StiPenStyle.None;
this.Text1.MaxSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text1.MinSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text1.Name = "Text1";
this.Text1.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text1__GetValue);
this.Text1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Text1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
this.Text1.Font = new System.Drawing.Font("Arial", 8F);
this.Text1.Guid = null;
this.Text1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.Text1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.Text1.TextFormat = new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService();
this.Text1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// Text2
//
this.Text2 = new Stimulsoft.Report.Components.StiText();
this.Text2.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0.4, 0, 0.2, 0.2);
this.Text2.LinesOfUnderline = Stimulsoft.Base.Drawing.StiPenStyle.None;
this.Text2.MaxSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text2.MinSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text2.Name = "Text2";
this.Text2.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text2__GetValue);
this.Text2.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Text2.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
this.Text2.Font = new System.Drawing.Font("Arial", 8F);
this.Text2.Guid = null;
this.Text2.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.Text2.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.Text2.TextFormat = new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService();
this.Text2.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// Text3
//
this.Text3 = new Stimulsoft.Report.Components.StiText();
this.Text3.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(1.8, 0, 0.6, 0.2);
this.Text3.LinesOfUnderline = Stimulsoft.Base.Drawing.StiPenStyle.None;
this.Text3.MaxSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text3.MinSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text3.Name = "Text3";
this.Text3.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text3__GetValue);
this.Text3.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Text3.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
this.Text3.Font = new System.Drawing.Font("Arial", 8F);
this.Text3.Guid = null;
this.Text3.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.Text3.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.Text3.TextFormat = new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService();
this.Text3.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// Text4
//
this.Text4 = new Stimulsoft.Report.Components.StiText();
this.Text4.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(1.3, 0, 0.5, 0.2);
this.Text4.LinesOfUnderline = Stimulsoft.Base.Drawing.StiPenStyle.None;
this.Text4.MaxSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text4.MinSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text4.Name = "Text4";
this.Text4.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text4__GetValue);
this.Text4.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Text4.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
this.Text4.Font = new System.Drawing.Font("Arial", 8F);
this.Text4.Guid = null;
this.Text4.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.Text4.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.Text4.TextFormat = new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService();
this.Text4.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// Text5
//
this.Text5 = new Stimulsoft.Report.Components.StiText();
this.Text5.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(3.7, 0, 0.6, 0.2);
this.Text5.LinesOfUnderline = Stimulsoft.Base.Drawing.StiPenStyle.None;
this.Text5.MaxSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text5.MinSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text5.Name = "Text5";
this.Text5.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text5__GetValue);
this.Text5.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Text5.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
this.Text5.Font = new System.Drawing.Font("Arial", 8F);
this.Text5.Guid = null;
this.Text5.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.Text5.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.Text5.TextFormat = new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService();
this.Text5.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// Text6
//
this.Text6 = new Stimulsoft.Report.Components.StiText();
this.Text6.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(2.9, 0, 0.8, 0.2);
this.Text6.LinesOfUnderline = Stimulsoft.Base.Drawing.StiPenStyle.None;
this.Text6.MaxSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text6.MinSize = new Stimulsoft.Base.Drawing.SizeD(0, 0);
this.Text6.Name = "Text6";
this.Text6.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text6__GetValue);
this.Text6.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Text6.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
this.Text6.Font = new System.Drawing.Font("Arial", 8F);
this.Text6.Guid = null;
this.Text6.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.Text6.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.Text6.TextFormat = new Stimulsoft.Report.Components.TextFormats.StiGeneralFormatService();
this.Text6.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
this.Data1.DataRelationName = null;
this.Data1.Guid = null;
this.Data1.MasterComponent = null;
this.Page1.ExcelSheetValue = null;
this.Page1.Margins = new Stimulsoft.Report.Components.StiMargins(0.39, 0.39, 0.39, 0.39);
this.Page1_Watermark = new Stimulsoft.Report.Components.StiWatermark();
this.Page1_Watermark.Font = new System.Drawing.Font("Arial", 100F);
this.Page1_Watermark.Image = null;
this.Page1_Watermark.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(50, 0, 0, 0));
this.Report_PrinterSettings = new Stimulsoft.Report.Print.StiPrinterSettings();
this.PrinterSettings = this.Report_PrinterSettings;
this.Page1.Page = this.Page1;
this.Page1.Report = this;
this.Page1.Watermark = this.Page1_Watermark;
this.Data1.Page = this.Page1;
this.Data1.Parent = this.Page1;
this.Text1.Page = this.Page1;
this.Text1.Parent = this.Data1;
this.Text2.Page = this.Page1;
this.Text2.Parent = this.Data1;
this.Text3.Page = this.Page1;
this.Text3.Parent = this.Data1;
this.Text4.Page = this.Page1;
this.Text4.Parent = this.Data1;
this.Text5.Page = this.Page1;
this.Text5.Parent = this.Data1;
this.Text6.Page = this.Page1;
this.Text6.Parent = this.Data1;
//
// Add to Data1.Components
//
this.Data1.Components.Clear();
this.Data1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
this.Text1,
this.Text2,
this.Text3,
this.Text4,
this.Text5,
this.Text6});
//
// Add to Page1.Components
//
this.Page1.Components.Clear();
this.Page1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
this.Data1});
//
// Add to Pages
//
this.Pages.Clear();
this.Pages.AddRange(new Stimulsoft.Report.Components.StiPage[] {
this.Page1});
this.Model_User.Columns.AddRange(new Stimulsoft.Report.Dictionary.StiDataColumn[] {
new Stimulsoft.Report.Dictionary.StiDataColumn("UserId", "UserId", "UserId", typeof(long)),
new Stimulsoft.Report.Dictionary.StiDataColumn("UserName", "UserName", "UserName", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("UserPassword", "UserPassword", "UserPassword", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("FirstName", "FirstName", "FirstName", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("LastName", "LastName", "LastName", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("Email", "Email", "Email", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("IsLocked", "IsLocked", "IsLocked", typeof(bool)),
new Stimulsoft.Report.Dictionary.StiDataColumn("IsAdministrator", "IsAdministrator", "IsAdministrator", typeof(bool)),
new Stimulsoft.Report.Dictionary.StiDataColumn("IsTemplate", "IsTemplate", "IsTemplate", typeof(bool)),
new Stimulsoft.Report.Dictionary.StiDataColumn("TemplateUserId", "TemplateUserId", "TemplateUserId", typeof(long)),
new Stimulsoft.Report.Dictionary.StiDataColumn("RowVersion", "RowVersion", "RowVersion", typeof(decimal)),
new Stimulsoft.Report.Dictionary.StiDataColumn("CreatedBy", "CreatedBy", "CreatedBy", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("CreatedByUserId", "CreatedByUserId", "CreatedByUserId", typeof(long)),
new Stimulsoft.Report.Dictionary.StiDataColumn("CreatedDate", "CreatedDate", "CreatedDate", typeof(DateTime)),
new Stimulsoft.Report.Dictionary.StiDataColumn("ModifiedBy", "ModifiedBy", "ModifiedBy", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("ModifiedByUserId", "ModifiedByUserId", "ModifiedByUserId", typeof(long)),
new Stimulsoft.Report.Dictionary.StiDataColumn("ModifiedDate", "ModifiedDate", "ModifiedDate", typeof(DateTime)),
new Stimulsoft.Report.Dictionary.StiDataColumn("Salt", "Salt", "Salt", typeof(string))});
this.DataSources.Add(this.Model_User);
this.Model_UserRole.Columns.AddRange(new Stimulsoft.Report.Dictionary.StiDataColumn[] {
new Stimulsoft.Report.Dictionary.StiDataColumn("Id", "Id", "ID", typeof(long)),
new Stimulsoft.Report.Dictionary.StiDataColumn("UserId", "UserId", "UserId", typeof(long)),
new Stimulsoft.Report.Dictionary.StiDataColumn("RoleId", "RoleId", "RoleId", typeof(long))});
this.DataSources.Add(this.Model_UserRole);
this.Model_Role.Columns.AddRange(new Stimulsoft.Report.Dictionary.StiDataColumn[] {
new Stimulsoft.Report.Dictionary.StiDataColumn("Id", "Id", "Id", typeof(long)),
new Stimulsoft.Report.Dictionary.StiDataColumn("Name", "Name", "Name", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("Description", "Description", "Description", typeof(string))});
this.DataSources.Add(this.Model_Role);
}
#region DataSource Model_User
public class Model_UserDataSource : Stimulsoft.Report.Dictionary.StiDataTableSource
{
public Model_UserDataSource() :
base("dataset.Model:User", "Model:User")
{
}
public virtual long UserId
{
get
{
return ((long)(StiReport.ChangeType(this["UserId"], typeof(long), true)));
}
}
public virtual string UserName
{
get
{
return ((string)(StiReport.ChangeType(this["UserName"], typeof(string), true)));
}
}
public virtual string UserPassword
{
get
{
return ((string)(StiReport.ChangeType(this["UserPassword"], typeof(string), true)));
}
}
public virtual string FirstName
{
get
{
return ((string)(StiReport.ChangeType(this["FirstName"], typeof(string), true)));
}
}
public virtual string LastName
{
get
{
return ((string)(StiReport.ChangeType(this["LastName"], typeof(string), true)));
}
}
public virtual string Email
{
get
{
return ((string)(StiReport.ChangeType(this["Email"], typeof(string), true)));
}
}
public virtual bool IsLocked
{
get
{
return ((bool)(StiReport.ChangeType(this["IsLocked"], typeof(bool), true)));
}
}
public virtual bool IsAdministrator
{
get
{
return ((bool)(StiReport.ChangeType(this["IsAdministrator"], typeof(bool), true)));
}
}
public virtual bool IsTemplate
{
get
{
return ((bool)(StiReport.ChangeType(this["IsTemplate"], typeof(bool), true)));
}
}
public virtual long TemplateUserId
{
get
{
return ((long)(StiReport.ChangeType(this["TemplateUserId"], typeof(long), true)));
}
}
public virtual decimal RowVersion
{
get
{
return ((decimal)(StiReport.ChangeType(this["RowVersion"], typeof(decimal), true)));
}
}
public virtual string CreatedBy
{
get
{
return ((string)(StiReport.ChangeType(this["CreatedBy"], typeof(string), true)));
}
}
public virtual long CreatedByUserId
{
get
{
return ((long)(StiReport.ChangeType(this["CreatedByUserId"], typeof(long), true)));
}
}
public virtual DateTime CreatedDate
{
get
{
return ((DateTime)(StiReport.ChangeType(this["CreatedDate"], typeof(DateTime), true)));
}
}
public virtual string ModifiedBy
{
get
{
return ((string)(StiReport.ChangeType(this["ModifiedBy"], typeof(string), true)));
}
}
public virtual long ModifiedByUserId
{
get
{
return ((long)(StiReport.ChangeType(this["ModifiedByUserId"], typeof(long), true)));
}
}
public virtual DateTime ModifiedDate
{
get
{
return ((DateTime)(StiReport.ChangeType(this["ModifiedDate"], typeof(DateTime), true)));
}
}
public virtual string Salt
{
get
{
return ((string)(StiReport.ChangeType(this["Salt"], typeof(string), true)));
}
}
}
#endregion DataSource Model_User
#region DataSource Model_UserRole
public class Model_UserRoleDataSource : Stimulsoft.Report.Dictionary.StiDataTableSource
{
public Model_UserRoleDataSource() :
base("dataset.Model:UserRole", "Model:UserRole")
{
}
public virtual long Id
{
get
{
return ((long)(StiReport.ChangeType(this["Id"], typeof(long), true)));
}
}
public virtual long UserId
{
get
{
return ((long)(StiReport.ChangeType(this["UserId"], typeof(long), true)));
}
}
public virtual long RoleId
{
get
{
return ((long)(StiReport.ChangeType(this["RoleId"], typeof(long), true)));
}
}
}
#endregion DataSource Model_UserRole
#region DataSource Model_Role
public class Model_RoleDataSource : Stimulsoft.Report.Dictionary.StiDataTableSource
{
public Model_RoleDataSource() :
base("dataset.Model:Role", "Model:Role")
{
}
public virtual long Id
{
get
{
return ((long)(StiReport.ChangeType(this["Id"], typeof(long), true)));
}
}
public new virtual string Name
{
get
{
return ((string)(StiReport.ChangeType(this["Name"], typeof(string), true)));
}
}
public virtual string Description
{
get
{
return ((string)(StiReport.ChangeType(this["Description"], typeof(string), true)));
}
}
}
#endregion DataSource Model_Role
#endregion StiReport Designer generated code - do not modify
}
}
-----------------------------------------------------------
notice that the offending class is Model_UserDataSource Model_User inherited from Stimulsoft.Report.Dictionary.StiDataTableSource not Stimulsoft.Report.Dictionary.StiBusinessObjectSource
I have tried adding my exe to the list of referenced assemblies. the dataset that is providing the data for the report is from that assembly.. but if I save the report from inside the report designer and then open it up before closing the report, the references is gone..
Here is the list before I save the report..
System.Dll
System.Drawing.Dll
System.Windows.Forms.Dll
System.Data.Dll
System.Xml.Dll
Stimulsoft.Controls.Dll
Stimulsoft.Base.Dll
Stimulsoft.Report.Dll
TimeAndIssues.Exe
sorry for the long post, but trying to make everything clear..