How to call My Function with two parameters

Stimulsoft Reports.NET discussion
Post Reply
borges
Posts: 5
Joined: Wed Oct 31, 2012 4:08 pm
Location: Brazil

How to call My Function with two parameters

Post by borges »

Good afternoon

How to call My Function with two parameters of type string?

I've done this way:

DataTable dt = new DataTable();
dt.Columns.Add("CODIGO", typeof(int));
dt.Columns.Add("TIPO", typeof(int));
dt.Rows.Add(1, 1);
dt.TableName = "TABLE";

//Create text
StiText dataText = new StiText(new RectangleD(0, 0, 5, 0.5));
string tableName = "People";
dataText.Text = "{new ClsClass().RetornaDescricao(tableName, TABLE.TIPO)}";
dataText.Name = "DataText";

But it returns the following error: "Invalid expression term"...
Anyone know what is wrong and how to solve this problem?

Thank you for the help and attention of all...
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to call My Function with two parameters

Post by Alex K. »

Hello,

Can you please send us a sample project which reproduce the issue for analysis.

Thank you.
Post Reply