vb.netfastreportsquare-bracket

Escape [ Square Brackets ] in Fast Report Strings


Good Morning.

I am trying to use Fast Reports v1.4.42

Everything was going well up until I attempted to concatenate a string.

I am trying to create a string that looks somewhat like the following.

1 - [Name Here]

2 - [Another Name]

3 - [Test Name]

I attempted to do this using the following code.

CType(Report.GetColumnValue("Table1.Code"), String) & " [" & CType(Report.GetColumnValue("Table1.Name"), String) & "]"

Unfortunatly as I already know using [Square Brackets] means that FastReports looks for variables with the name inside the brackets.

As such the fast report is looking for (using the example above), variables called Name, Here, Another, Name etc...

Is there a way of placeing [Square Brackets] into a fast report string without it falling over.

If it makes any difference I am using fast reports plugged into a VB.NET project.


Solution

  • The answer here is:

    Remove the value from the Brackets property of the TextBox/Cell