RegData Parameter Count mismatch

Stimulsoft Reports.NET discussion
Post Reply
Georg Redder
Posts: 6
Joined: Thu Nov 09, 2006 5:40 am
Location: Germany

RegData Parameter Count mismatch

Post by Georg Redder »

I have got a problem assingning a business object to a report. I hope you can help me with that.
I try:

User benutzer = Applib.GetUser();
User[] nutzerListe = new User[1];
nutzerListe[0] = benutzer;
string ReportPath = Applib.ReportPath;
ReportPath = ReportPath + "StckListLief.mrt";
StiReport report = new StiReport();
report.Load(ReportPath);
report.RegBusinessObject("Nutzerliste", nutzerListe);
report.Design();

RegBusinesObject reports "Parameter Count mismatch", but I can see the Datasource in the designer, and the preview looks fine.
Same thing happens if I user RegData instead of RegBusinessObject.

If I assign the businessobject benutzer directly instead of putting it in an array, RegBusinessObject leads to show the correct Datasource, but trying to view the data in the designer results in the error message "Parameter Count mismatch", too.

Assigning the businessobject directly via Regdata shows lots of Properties - I think of the .Net object class - in the designer, but not the properties I implemented in my class.

I'm using version 2006.4. The User class code is:

///
/// Ein Objekt, das die Daten für den angemeldeten User enthält.
///
public class User:DomainObject
{
///
/// Windows-Anmeldename
///
private string anmeldeName = "";
///
/// Vorname
///
private string vorName = "";
///
/// Nachname
///
private string nachName = "";
///
/// Telefonnummer
///
private string telefonNummer = "";
///
/// E-Mail Adresse
///
private string eMail = "";

#region Properties
///
/// Windows-Anmeldename
///
public string AnmeldeName
{
get
{
return anmeldeName;
}
set
{
anmeldeName = value;
}
}

///
/// Gibt den Familiennamen zurück oder setzt ihn.
///
public string Nachname
{
get
{
return nachName;
}
set
{
nachName = value;
}
}

///
/// Gibt den Vornamen zurück oder setzt ihn.
///
public string Vorname
{
get
{
return vorName;
}
set
{
vorName = value;
}
}

///
/// Gibt die Telefonnummer zurück oder setzt sie.
///
public string TelefonNummer
{
get
{
return telefonNummer;
}
set
{
telefonNummer = value;
}
}

///
/// Gibt die E-Mail Adresse zurück oder setzt sie.
///
public string Email
{
get
{
return eMail;
}
set
{
eMail = value;
}
}
#endregion

///
/// Gibt Vorname und Name zurück.
///
public string Name
{
get
{
return vorName + " " + nachName;
}

}
}




Regards
Georg
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

RegData Parameter Count mismatch

Post by Edward »

Please download the latest prerelease version of StimulReport.Net.

It contains many improvements regarding the problem.

Thank you.
Georg Redder
Posts: 6
Joined: Thu Nov 09, 2006 5:40 am
Location: Germany

RegData Parameter Count mismatch

Post by Georg Redder »

Thank you very much - works perfectly now!
Did I mention I love as well the product as the very fast and friendly support?
Because I really do! :biggrin:

Regards
Georg
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

RegData Parameter Count mismatch

Post by Edward »

We always try to do our best for our customers.

Thank you very much for the such good words.
Post Reply