Question

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.

Was it helpful?

Solution

The answer here is:

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

OTHER TIPS

for further information, u can check documentation, idk about .net but delphi documentation section is 2.5 of the user manual, where u can customize the delimiters using “ExpressionDelimiters” property

This is very simple for FastReport.Net this is working:

["[YourTextInSquareBrackets]"]

I have change bracket property from [,] to empty, it works! Please refer: a link

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top